update basePath

This commit is contained in:
fmtabbara
2024-11-01 15:26:05 +00:00
parent d6890a9c39
commit 2b5dde28d3
+5 -7
View File
@@ -39,12 +39,14 @@ nextra.webpack = (config, options) => {
const config = {
...nextra,
basePath: "/docs",
async redirects() {
return [
// network docs
{
source: "/docs",
destination: "/",
source: "/",
destination: "/docs",
basePath: false,
permanent: true,
},
{
@@ -479,11 +481,7 @@ const config = {
destination: "/:path*",
permanent: false,
},
{
source: "/docs/:path*",
destination: "/:path*",
permanent: false,
},
// TODO these need to go in the config of the existing deployed ts sdk docs to redirect from there
// these assume source basePath = sdk.nymtech.net
// {