CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
27 lines
821 B
JavaScript
27 lines
821 B
JavaScript
import { z } from "zod";
|
|
import { emitESMImage } from "../assets/utils/node/emitAsset.js";
|
|
function createImage(pluginContext, shouldEmitFile, entryFilePath) {
|
|
return () => {
|
|
return z.string().transform(async (imagePath, ctx) => {
|
|
const resolvedFilePath = (await pluginContext.resolve(imagePath, entryFilePath))?.id;
|
|
const metadata = await emitESMImage(
|
|
resolvedFilePath,
|
|
pluginContext.meta.watchMode,
|
|
shouldEmitFile ? pluginContext.emitFile : void 0
|
|
);
|
|
if (!metadata) {
|
|
ctx.addIssue({
|
|
code: "custom",
|
|
message: `Image ${imagePath} does not exist. Is the path correct?`,
|
|
fatal: true
|
|
});
|
|
return z.never();
|
|
}
|
|
return { ...metadata, ASTRO_ASSET: metadata.fsPath };
|
|
});
|
|
};
|
|
}
|
|
export {
|
|
createImage
|
|
};
|