Skip to content

Commit

Permalink
New astro config
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanM04 committed Apr 2, 2022
1 parent ccce433 commit bf2199e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/integrations/vercel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ 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());
_config = config;
},
'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);
Expand Down

0 comments on commit bf2199e

Please sign in to comment.