Skip to content

Commit 22da599

Browse files
committed
chore: update snapshots
1 parent b608a05 commit 22da599

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

test/__snapshots__/index.js.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,11 @@ Array [
11201120
"status": 404,
11211121
"to": "/404.html",
11221122
},
1123+
Object {
1124+
"from": "/api/og",
1125+
"status": 200,
1126+
"to": "/.netlify/functions/_api_og-handler",
1127+
},
11231128
Object {
11241129
"from": "/api/shows/:id",
11251130
"status": 200,

test/index.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,11 @@ describe('onBuild()', () => {
470470
'.next/static/chunks/webpack-middleware*.js',
471471
'!.next/server/**/*.js.nft.json',
472472
'!../../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/**/*',
478478
]
479479
// Relative paths in Windows are different
480480
if (os.platform() !== 'win32') {
@@ -1594,6 +1594,13 @@ describe('api route file analysis', () => {
15941594
config: { schedule: '@hourly', type: 'experimental-scheduled' },
15951595
route: '/api/hello-scheduled',
15961596
},
1597+
{
1598+
compiled: 'pages/api/og.js',
1599+
config: {
1600+
runtime: 'experimental-edge',
1601+
},
1602+
route: '/api/og',
1603+
},
15971604
]),
15981605
)
15991606
})

0 commit comments

Comments
 (0)