Skip to content

Commit 24e3472

Browse files
committed
Or this will fix it
1 parent 93f9459 commit 24e3472

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

apps/docs/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ const withTM = require("next-transpile-modules")(["@dumbcode/shared"]);
22

33
module.exports = withTM({
44
reactStrictMode: true,
5-
basePath: "/docs-from-studio",
5+
basePath: "/docs",
66
});

apps/studio/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/studio/next.config.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff 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
})

apps/studio/vercel.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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
}

0 commit comments

Comments
 (0)