Skip to content

Commit 02d0834

Browse files
committed
fix: snapshot
1 parent 0521168 commit 02d0834

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

demo/next.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
module.exports = {
22
// Configurable site features we support:
33
// distDir: 'build',
4-
54
generateBuildId: () => 'build-id',
65
i18n: {
76
defaultLocale: 'en',
8-
locales: ['en', 'es', 'fr'],
7+
locales: ['en', 'es', 'fr']
98
},
109
async headers() {
1110
return [
@@ -15,7 +14,7 @@ module.exports = {
1514
{
1615
key: 'x-custom-header',
1716
value: 'my custom header value',
18-
},
17+
}
1918
],
2019
},
2120
]
@@ -30,8 +29,8 @@ module.exports = {
3029
{
3130
source: '/old/:path*',
3231
destination: '/:path*',
33-
},
34-
],
32+
}
33+
]
3534
}
3635
},
3736
// Redirects allow you to redirect an incoming request path to a different destination path.

test/__snapshots__/index.js.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,16 @@ Array [
213213
"status": 200,
214214
"to": "/.netlify/functions/___netlify-handler",
215215
},
216+
Object {
217+
"from": "/api",
218+
"status": 200,
219+
"to": "/.netlify/functions/___netlify-handler",
220+
},
221+
Object {
222+
"from": "/api/*",
223+
"status": 200,
224+
"to": "/.netlify/functions/___netlify-handler",
225+
},
216226
Object {
217227
"force": true,
218228
"from": "/BUILD_ID",

0 commit comments

Comments
 (0)