From bf2199e1dff76e684c371f974a1044bb13338300 Mon Sep 17 00:00:00 2001 From: JuanM04 Date: Sat, 2 Apr 2022 18:59:03 -0300 Subject: [PATCH] New astro config --- packages/integrations/vercel/src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/integrations/vercel/src/index.ts b/packages/integrations/vercel/src/index.ts index 894c77be7ea4..49a924b2d763 100644 --- a/packages/integrations/vercel/src/index.ts +++ b/packages/integrations/vercel/src/index.ts @@ -23,8 +23,8 @@ export default function vercel(): AstroIntegration { name: '@astrojs/vercel', hooks: { 'astro:config:setup': ({ config }) => { - config.dist = new URL('./.output/', config.projectRoot); - config.buildOptions.pageUrlFormat = 'directory'; + config.outDir = new URL('./.output/', config.outDir); + config.build.format = 'directory'; }, 'astro:config:done': ({ setAdapter, config }) => { setAdapter(getAdapter()); @@ -32,8 +32,8 @@ export default function vercel(): AstroIntegration { }, 'astro:build:start': async ({ buildConfig }) => { buildConfig.serverEntry = `${ENTRYFILE}.mjs`; - buildConfig.client = new URL('./static/', _config.dist); - buildConfig.server = new URL('./server/pages/', _config.dist); + buildConfig.client = new URL('./static/', _config.outDir); + buildConfig.server = new URL('./server/pages/', _config.outDir); }, 'astro:build:done': async ({ dir, routes }) => { const pagesDir = new URL('./server/pages/', dir);