@@ -12,7 +12,7 @@ import {
1212import remarkGithubAdmonitionsToDirectives from "remark-github-admonitions-to-directives" ;
1313import { pluginHotjar } from "@netfoundry/docusaurus-theme/node" ;
1414import { PublishConfig } from 'src/components/docusaurus'
15- import { zrokDocsPluginConfig } from "./_remotes/zrok/website/docusaurus-plugin-zrok-docs.ts" ;
15+ import { zrokDocsPluginConfig , zrokRedirects } from "./_remotes/zrok/website/docusaurus-plugin-zrok-docs.ts" ;
1616import { onpremRedirects } from "./_remotes/selfhosted/docusaurus/docusaurus-plugin-onprem-docs.ts" ;
1717
1818// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
@@ -25,6 +25,7 @@ const zlan = `./_remotes/zlan`;
2525const isVercel = process . env . IS_VERCEL === 'true' ;
2626const docsBase = isVercel ? '/' : '/docs/' ;
2727
28+
2829// On Vercel previews, the baseUrl needs to be '/', routes need a 'docs/' prefix to match hardcoded /docs/ links in remote content.
2930// On default non-Vercel-preview builds baseUrl is '/docs/'
3031function routeBase ( name : string ) {
@@ -351,6 +352,7 @@ const config: Config = {
351352 [ pluginHotjar , { } ] ,
352353 [ '@docusaurus/plugin-google-tag-manager' , { id : `openziti-gtm` , containerId : cfg . google . tag } ] ,
353354 build ( BUILD_FLAGS . SELFHOSTED ) && onpremRedirects ( routeBase ( 'selfhosted' ) ) ,
355+ build ( BUILD_FLAGS . ZROK ) && zrokRedirects ( routeBase ( 'zrok' ) ) ,
354356 ] . filter ( Boolean ) ,
355357 themeConfig : {
356358 docs : {
0 commit comments