♻️ Restructure: Move Astro to repository root
BREAKING CHANGE: Astro project is now at repository root - Removed dealplustech-astro subdirectory - Moved all Astro files to root - Updated PostCSS config to .cjs - Removed old Next.js files ✅ 11 pages built successfully ✅ Cookie consent banner included ✅ Privacy/Terms links in footer ✅ Ready for Easypanel deployment (no root dir needed) Migration path: - Old structure: /dealplustech-astro/ - New structure: / (root)
This commit is contained in:
28
dealplustech-astro/node_modules/astro/dist/content/runtime-assets.js
generated
vendored
28
dealplustech-astro/node_modules/astro/dist/content/runtime-assets.js
generated
vendored
@@ -1,28 +0,0 @@
|
||||
import { z } from "zod";
|
||||
import { emitESMImage } from "../assets/utils/node/emitAsset.js";
|
||||
function createImage(pluginContext, shouldEmitFile, entryFilePath, experimentalSvgEnabled) {
|
||||
return () => {
|
||||
return z.string().transform(async (imagePath, ctx) => {
|
||||
const resolvedFilePath = (await pluginContext.resolve(imagePath, entryFilePath))?.id;
|
||||
const metadata = await emitESMImage(
|
||||
resolvedFilePath,
|
||||
pluginContext.meta.watchMode,
|
||||
// FUTURE: Remove in this in v6
|
||||
experimentalSvgEnabled,
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user