Support Astro 5

This commit is contained in:
Bad Manners 2024-12-03 18:35:16 -03:00
parent 6757c0b0e6
commit dc2fb254d6
4 changed files with 1125 additions and 1609 deletions

View file

@ -66,7 +66,7 @@ export const integration = ({ generateHtaccessFile, errorPages, redirects, custo
assetsDir = fileURLToPath(new URL(".vercel/output/static/", config.root));
} else if (config.adapter?.name === "@astrojs/cloudflare") {
assetsDir = fileURLToPath(new URL(config.base?.replace(/^\//, ""), config.outDir));
} else if (config.adapter?.name === "@astrojs/node" && config.output === "hybrid") {
} else if (config.adapter?.name === "@astrojs/node") {
assetsDir = fileURLToPath(config.build.client!);
} else {
assetsDir = fileURLToPath(config.outDir);