docs: preparations for preview (#7267)
* configured base paths + added development banner * fix typelist site url * added navbar and sidebar badges * configure algolia filters * remove AI assistant * remove unused imports * change navbar text and badge * lint fixes * fix build error * add to api reference rewrites * fix build error * fix build errors in user-guide * fix feedback component * add parent title to pagination * added breadcrumbs component * remove user-guide links * resolve todos * fix details about authentication * change documentation title * lint content
This commit is contained in:
1 parent
3e3b8a483f
commit
728c5ee53c
62 files changed
+855
-506
No files matched your search
@@ -4,30 +4,44 @@ import bundleAnalyzer from "@next/bundle-analyzer"
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
async rewrites() {
|
||||
const fallbacks = [
|
||||
{
|
||||
source: "/ui",
|
||||
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui`,
|
||||
},
|
||||
{
|
||||
source: "/ui/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui/:path*`,
|
||||
},
|
||||
{
|
||||
source: "/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
|
||||
},
|
||||
]
|
||||
|
||||
if (process.env.NEXT_PUBLIC_SHOW_V2) {
|
||||
fallbacks.push(
|
||||
{
|
||||
source: "/v2/resources",
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_V2_URL}/v2/resources`,
|
||||
},
|
||||
{
|
||||
source: "/v2/resources/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_V2_URL}/v2/resources/:path*`,
|
||||
},
|
||||
{
|
||||
source: "/v2",
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_V2_URL}/v2`,
|
||||
},
|
||||
{
|
||||
source: "/v2/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_V2_URL}/v2/:path*`,
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
return {
|
||||
fallback: [
|
||||
{
|
||||
source: "/ui",
|
||||
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui`,
|
||||
},
|
||||
{
|
||||
source: "/ui/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_UI_URL}/ui/:path*`,
|
||||
},
|
||||
// TODO uncomment for v2
|
||||
// {
|
||||
// source: "/v2",
|
||||
// destination: `${process.env.NEXT_PUBLIC_DOCS_V2_URL}/resources`,
|
||||
// },
|
||||
// {
|
||||
// source: "/v2/:path*",
|
||||
// destination: `${process.env.NEXT_PUBLIC_DOCS_V2_URL}/resources/:path*`,
|
||||
// },
|
||||
{
|
||||
source: "/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
|
||||
},
|
||||
],
|
||||
fallback: fallbacks,
|
||||
}
|
||||
},
|
||||
webpack: (config) => {
|
||||
|
||||
Reference in new issue
Block a user