File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed
Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -19,21 +19,21 @@ module.exports = withPlugins([
1919 skipWaiting : true ,
2020 } ,
2121
22- rewrites : [
23- {
24- source : '/:path*' ,
25- destination : `/:path*` ,
26- } ,
27-
28- {
29- "__comment" : "This will only be ran on dev. Production will use the vercel.json rewrites" ,
30- source : '/docs' ,
31- destination : `http://localhost:3001/docs` ,
32- } ,
33- {
34- source : '/docs/:path*' ,
35- destination : `http://localhost:3001/docs/:path` ,
36- } ,
37- ]
22+ async rewrites ( ) {
23+ return [
24+ {
25+ source : '/:path*' ,
26+ destination : `/:path*` ,
27+ } ,
3828
29+ {
30+ source : '/docs' ,
31+ destination : `http://localhost:3001/docs` ,
32+ } ,
33+ {
34+ source : '/docs/:path*' ,
35+ destination : `http://localhost:3001/docs/:path*` ,
36+ } ,
37+ ]
38+ } ,
3939} )
Original file line number Diff line number Diff line change 66 {
77 "source" : " /docs" ,
88 "destination" : " https://dumbcode-studio-docs.vercel.app/docs"
9+ },
10+ {
11+ "source" : " /docs/:path*" ,
12+ "destination" : " https://dumbcode-studio-docs.vercel.app/docs/:path*"
913 }
1014 ]
1115}
You can’t perform that action at this time.
0 commit comments