@@ -171,31 +171,17 @@ outputFiles:
171171 ".next/static/staticfile" : "" ,
172172 } ;
173173 generateTestFiles ( tmpDir , files ) ;
174+ const standaloneAppPath = path . join ( tmpDir , ".next" , "standalone" , "apps" , "next-app" ) ;
174175 await generateBuildOutput (
175176 tmpDir ,
176177 "apps/next-app" ,
177178 {
178179 bundleYamlPath : path . join ( tmpDir , ".apphosting" , "bundle.yaml" ) ,
179180 outputDirectoryBasePath : path . join ( tmpDir , ".apphosting" ) ,
180- outputDirectoryAppPath : path . join ( tmpDir , ".next" , "standalone" , "apps" , "next-app" ) ,
181- outputPublicDirectoryPath : path . join (
182- tmpDir ,
183- ".next" ,
184- "standalone" ,
185- "apps" ,
186- "next-app" ,
187- "public" ,
188- ) ,
189- outputStaticDirectoryPath : path . join (
190- tmpDir ,
191- ".next" ,
192- "standalone" ,
193- "apps" ,
194- "next-app" ,
195- ".next" ,
196- "static" ,
197- ) ,
198- serverFilePath : path . join ( tmpDir , ".next" , "standalone" , "apps" , "next-app" , "server.js" ) ,
181+ outputDirectoryAppPath : standaloneAppPath ,
182+ outputPublicDirectoryPath : path . join ( standaloneAppPath , "public" ) ,
183+ outputStaticDirectoryPath : path . join ( standaloneAppPath , ".next" , "static" ) ,
184+ serverFilePath : path . join ( standaloneAppPath , "server.js" ) ,
199185 } ,
200186 path . join ( tmpDir , ".next" ) ,
201187 defaultNextVersion ,
@@ -229,10 +215,7 @@ outputFiles:
229215 outputBundleOptions ,
230216 path . join ( tmpDir , ".next" ) ,
231217 defaultNextVersion ,
232- {
233- adapterPackageName : "@apphosting/adapter-nextjs" ,
234- adapterVersion : "14.0.1" ,
235- } ,
218+ adapterMetadata ,
236219 ) ;
237220 await validateOutputDirectory ( outputBundleOptions , path . join ( tmpDir , ".next" ) ) ;
238221
@@ -294,10 +277,7 @@ outputFiles:
294277 outputBundleOptions ,
295278 path . join ( tmpDir , ".next" ) ,
296279 defaultNextVersion ,
297- {
298- adapterPackageName : "@apphosting/adapter-nextjs" ,
299- adapterVersion : "14.0.1" ,
300- } ,
280+ adapterMetadata ,
301281 ) ;
302282 await validateOutputDirectory ( outputBundleOptions , path . join ( tmpDir , ".next" ) ) ;
303283
0 commit comments