feat(api-reference): Add rewrite to UI docs (#4791)
* add rewrite to UI docs * add base rewrite --------- Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
1 parent
5c2f15cfc4
commit
3ad2136888
2 files changed
+9
No files matched your search
@@ -6,4 +6,5 @@ NEXT_PUBLIC_ALGOLIA_APP_ID=
|
|||||||
NEXT_PUBLIC_ENV=
|
NEXT_PUBLIC_ENV=
|
||||||
NEXT_PUBLIC_BASE_URL=
|
NEXT_PUBLIC_BASE_URL=
|
||||||
NEXT_PUBLIC_DOCS_URL=
|
NEXT_PUBLIC_DOCS_URL=
|
||||||
|
NEXT_PUBLIC_UI_URL=
|
||||||
ALGOLIA_WRITE_API_KEY=
|
ALGOLIA_WRITE_API_KEY=
|
||||||
@@ -8,6 +8,14 @@ const nextConfig = {
|
|||||||
async rewrites() {
|
async rewrites() {
|
||||||
return {
|
return {
|
||||||
fallback: [
|
fallback: [
|
||||||
|
{
|
||||||
|
source: "/ui",
|
||||||
|
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
source: "/ui/:path*",
|
||||||
|
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui/:path*`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
source: "/:path*",
|
source: "/:path*",
|
||||||
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
|
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
|
||||||
|
|||||||
Reference in new issue
Block a user