File tree Expand file tree Collapse file tree 4 files changed +24
-19
lines changed
Expand file tree Collapse file tree 4 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ const withTM = require("next-transpile-modules")(["@dumbcode/shared"]);
22
33module . exports = withTM ( {
44 reactStrictMode : true ,
5- basePath : "/docs-from-studio " ,
5+ basePath : "/docs" ,
66} ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,21 +19,21 @@ module.exports = withPlugins([
1919 skipWaiting : true ,
2020 } ,
2121
22- async rewrites ( ) {
23- return [
24- {
25- source : '/:path*' ,
26- destination : `/:path*` ,
27- } ,
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+ ]
2838
29- {
30- source : '/docs' ,
31- destination : `${ process . env . DOCS_URL } /docs-from-studio` ,
32- } ,
33- {
34- source : '/docs/:path*' ,
35- destination : `${ process . env . DOCS_URL } /docs-from-studio/:path*` ,
36- } ,
37- ]
38- } ,
3939} )
Original file line number Diff line number Diff line change 11{
22 "github" : {
33 "silent" : true
4- }
4+ },
5+ "rewrites" : [
6+ {
7+ "source" : " /docs" ,
8+ "destination" : " https://dumbcode-studio-docs.vercel.app/docs"
9+ }
10+ ]
511}
You can’t perform that action at this time.
0 commit comments