♻️ 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:
30
dealplustech-astro/node_modules/astro/dist/assets/utils/metadata.js
generated
vendored
30
dealplustech-astro/node_modules/astro/dist/assets/utils/metadata.js
generated
vendored
@@ -1,30 +0,0 @@
|
||||
import { AstroError, AstroErrorData } from "../../core/errors/index.js";
|
||||
import { lookup as probe } from "../utils/vendor/image-size/lookup.js";
|
||||
async function imageMetadata(data, src) {
|
||||
let result;
|
||||
try {
|
||||
result = probe(data);
|
||||
} catch {
|
||||
throw new AstroError({
|
||||
...AstroErrorData.NoImageMetadata,
|
||||
message: AstroErrorData.NoImageMetadata.message(src)
|
||||
});
|
||||
}
|
||||
if (!result.height || !result.width || !result.type) {
|
||||
throw new AstroError({
|
||||
...AstroErrorData.NoImageMetadata,
|
||||
message: AstroErrorData.NoImageMetadata.message(src)
|
||||
});
|
||||
}
|
||||
const { width, height, type, orientation } = result;
|
||||
const isPortrait = (orientation || 0) >= 5;
|
||||
return {
|
||||
width: isPortrait ? height : width,
|
||||
height: isPortrait ? width : height,
|
||||
format: type,
|
||||
orientation
|
||||
};
|
||||
}
|
||||
export {
|
||||
imageMetadata
|
||||
};
|
||||
Reference in New Issue
Block a user