mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
New astro config
This commit is contained in:
parent
ccce433994
commit
bf2199e1df
1 changed files with 4 additions and 4 deletions
|
@ -23,8 +23,8 @@ export default function vercel(): AstroIntegration {
|
||||||
name: '@astrojs/vercel',
|
name: '@astrojs/vercel',
|
||||||
hooks: {
|
hooks: {
|
||||||
'astro:config:setup': ({ config }) => {
|
'astro:config:setup': ({ config }) => {
|
||||||
config.dist = new URL('./.output/', config.projectRoot);
|
config.outDir = new URL('./.output/', config.outDir);
|
||||||
config.buildOptions.pageUrlFormat = 'directory';
|
config.build.format = 'directory';
|
||||||
},
|
},
|
||||||
'astro:config:done': ({ setAdapter, config }) => {
|
'astro:config:done': ({ setAdapter, config }) => {
|
||||||
setAdapter(getAdapter());
|
setAdapter(getAdapter());
|
||||||
|
@ -32,8 +32,8 @@ export default function vercel(): AstroIntegration {
|
||||||
},
|
},
|
||||||
'astro:build:start': async ({ buildConfig }) => {
|
'astro:build:start': async ({ buildConfig }) => {
|
||||||
buildConfig.serverEntry = `${ENTRYFILE}.mjs`;
|
buildConfig.serverEntry = `${ENTRYFILE}.mjs`;
|
||||||
buildConfig.client = new URL('./static/', _config.dist);
|
buildConfig.client = new URL('./static/', _config.outDir);
|
||||||
buildConfig.server = new URL('./server/pages/', _config.dist);
|
buildConfig.server = new URL('./server/pages/', _config.outDir);
|
||||||
},
|
},
|
||||||
'astro:build:done': async ({ dir, routes }) => {
|
'astro:build:done': async ({ dir, routes }) => {
|
||||||
const pagesDir = new URL('./server/pages/', dir);
|
const pagesDir = new URL('./server/pages/', dir);
|
||||||
|
|
Loading…
Add table
Reference in a new issue