@@ -35,7 +35,7 @@ export default function vercel(): AstroIntegration {
35
35
buildConfig . client = new URL ( './static/' , _config . outDir ) ;
36
36
buildConfig . server = new URL ( './server/tmp/' , _config . outDir ) ;
37
37
} ,
38
- 'astro:build:done' : async ( { dir , routes } ) => {
38
+ 'astro:build:done' : async ( { routes } ) => {
39
39
/*
40
40
Why do we need two folders? Why don't we just generate all inside `server/pages/`?
41
41
When the app builds, it throws some metadata inside a `chunks/` folder.
@@ -50,8 +50,8 @@ export default function vercel(): AstroIntegration {
50
50
need to bundle as much as possible in one file. Hence, the following code
51
51
*/
52
52
53
- const tmpDir = new URL ( './server/tmp/' , dir ) ;
54
- const bundleDir = new URL ( './server/pages/' , dir ) ;
53
+ const tmpDir = new URL ( './server/tmp/' , _config . outDir ) ;
54
+ const bundleDir = new URL ( './server/pages/' , _config . outDir ) ;
55
55
56
56
await fs . mkdir ( bundleDir , { recursive : true } ) ;
57
57
@@ -69,7 +69,7 @@ export default function vercel(): AstroIntegration {
69
69
70
70
// Routes Manifest
71
71
// https://vercel.com/docs/file-system-api#configuration/routes
72
- await writeJson ( new URL ( `./routes-manifest.json` , dir ) , {
72
+ await writeJson ( new URL ( `./routes-manifest.json` , _config . outDir ) , {
73
73
version : 3 ,
74
74
basePath : '/' ,
75
75
pages404 : false ,
0 commit comments