feat: refresh shared chat and server workflows
This commit is contained in:
@@ -7,6 +7,7 @@ import { DocsPage } from './pages/DocsPage';
|
||||
import { PlansPage } from './pages/PlansPage';
|
||||
import { PlayPage } from './pages/PlayPage';
|
||||
import { buildChatPath, buildDocsPath } from './routes';
|
||||
import { isPreviewRuntime } from './previewRuntime';
|
||||
|
||||
export function AppShell() {
|
||||
return (
|
||||
@@ -14,7 +15,7 @@ export function AppShell() {
|
||||
<Route path="/chat-share/:token" element={<ChatSharePage />} />
|
||||
<Route path="/chat/share/:token" element={<ChatSharePage />} />
|
||||
<Route path="/" element={<MainLayout />}>
|
||||
<Route index element={<Navigate to={buildChatPath('live')} replace />} />
|
||||
<Route index element={<Navigate to={isPreviewRuntime() ? buildDocsPath() : buildChatPath('live')} replace />} />
|
||||
<Route path="docs/:folder" element={<DocsPage />} />
|
||||
<Route path="apis/:section" element={<ApisPage />} />
|
||||
<Route path="plans/:section" element={<PlansPage />} />
|
||||
|
||||
Reference in New Issue
Block a user