@@ -470,11 +470,11 @@ describe('onBuild()', () => {
470
470
'.next/static/chunks/webpack-middleware*.js' ,
471
471
'!.next/server/**/*.js.nft.json' ,
472
472
'!../../node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*' ,
473
- `! node_modules/next/dist/server/lib/squoosh/**/*.wasm` ,
474
- `! node_modules/next/dist/next-server/server/lib/squoosh/**/*.wasm` ,
475
- '!node_modules/next/dist/compiled/webpack/bundle4.js' ,
476
- '!node_modules/next/dist/compiled/webpack/bundle5.js' ,
477
- '!node_modules/sharp/**/*' ,
473
+ '!../../ node_modules/next/dist/server/lib/squoosh/**/*.wasm' ,
474
+ '!../../ node_modules/next/dist/next-server/server/lib/squoosh/**/*.wasm' ,
475
+ '!../../ node_modules/next/dist/compiled/webpack/bundle4.js' ,
476
+ '!../../ node_modules/next/dist/compiled/webpack/bundle5.js' ,
477
+ '!../../ node_modules/sharp/**/*' ,
478
478
]
479
479
// Relative paths in Windows are different
480
480
if ( os . platform ( ) !== 'win32' ) {
@@ -1594,6 +1594,13 @@ describe('api route file analysis', () => {
1594
1594
config : { schedule : '@hourly' , type : 'experimental-scheduled' } ,
1595
1595
route : '/api/hello-scheduled' ,
1596
1596
} ,
1597
+ {
1598
+ compiled : 'pages/api/og.js' ,
1599
+ config : {
1600
+ runtime : 'experimental-edge' ,
1601
+ } ,
1602
+ route : '/api/og' ,
1603
+ } ,
1597
1604
] ) ,
1598
1605
)
1599
1606
} )
0 commit comments