♻️ 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:
4
dealplustech-astro/node_modules/astro/dist/cli/db/index.d.ts
generated
vendored
4
dealplustech-astro/node_modules/astro/dist/cli/db/index.d.ts
generated
vendored
@@ -1,4 +0,0 @@
|
||||
import type { Arguments } from 'yargs-parser';
|
||||
export declare function db({ flags }: {
|
||||
flags: Arguments;
|
||||
}): Promise<void>;
|
||||
25
dealplustech-astro/node_modules/astro/dist/cli/db/index.js
generated
vendored
25
dealplustech-astro/node_modules/astro/dist/cli/db/index.js
generated
vendored
@@ -1,25 +0,0 @@
|
||||
import { resolveConfig } from "../../core/config/config.js";
|
||||
import { createLoggerFromFlags, flagsToAstroInlineConfig } from "../flags.js";
|
||||
import { getPackage } from "../install-package.js";
|
||||
async function db({ flags }) {
|
||||
const logger = createLoggerFromFlags(flags);
|
||||
const getPackageOpts = {
|
||||
skipAsk: !!flags.yes || !!flags.y,
|
||||
cwd: flags.root
|
||||
};
|
||||
const dbPackage = await getPackage("@astrojs/db", logger, getPackageOpts, []);
|
||||
if (!dbPackage) {
|
||||
logger.error(
|
||||
"check",
|
||||
"The `@astrojs/db` package is required for this command to work. Please manually install it in your project and try again."
|
||||
);
|
||||
return;
|
||||
}
|
||||
const { cli } = dbPackage;
|
||||
const inlineConfig = flagsToAstroInlineConfig(flags);
|
||||
const { astroConfig } = await resolveConfig(inlineConfig, "build");
|
||||
await cli({ flags, config: astroConfig });
|
||||
}
|
||||
export {
|
||||
db
|
||||
};
|
||||
Reference in New Issue
Block a user