docs: improved commerce module docs [2/n] (#9501)

Improve + add docs for commerce modules from currency to inventory

[2/n]
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-10-09 09:53:17 +00:00
1 parent 853187410e
commit 3298cd3fd2
25 files changed
+993 -373

No files matched your search

+14
View File
@@ -42,6 +42,20 @@ const nextConfig = {
transpilePackages: ["docs-ui"],
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/v2/resources",
async redirects() {
return [
{
source: "/commerce-modules/fulfillment/relations-to-other-modules",
destination: "/commerce-modules/fulfillment/links-to-other-modules",
permanent: true,
},
{
source: "/commerce-modules/inventory/relations-to-other-modules",
destination: "/commerce-modules/inventory/links-to-other-modules",
permanent: true,
},
]
},
// Redirects shouldn't be necessary anymore since we have remark / rehype
// plugins that fix links. But leaving this here in case we need it again.
// async redirects() {