mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 16:39:05 +00:00
Merge pull request #7487 from supabase/fix/redirect-docs-trailing-slash
Update next.config.js
This commit is contained in:
1 file changed
+6
@@ -48,6 +48,12 @@ module.exports = withMDX({
|
||||
source: '/docs',
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}`,
|
||||
},
|
||||
{
|
||||
// redirect /docs/
|
||||
// trailing slash caused by docusaurus issue with multizone
|
||||
source: '/docs/',
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}`,
|
||||
},
|
||||
{
|
||||
source: '/docs/:path*',
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
|
||||
|
||||
Reference in new issue
Block a user