Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { withBotId } from "botid/next/config";
import type { NextConfig } from "next";

const basePath = "/demo";
const basePath = process.env.IS_DEMO === "1" ? "/demo" : "";

const nextConfig: NextConfig = {
basePath,
assetPrefix: "/demo-assets",
...(basePath ? { basePath, assetPrefix: "/demo-assets" } : {}),
env: {
NEXT_PUBLIC_BASE_PATH: basePath,
},
Expand Down
9 changes: 1 addition & 8 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
{
"framework": "nextjs",
"redirects": [
{
"source": "/",
"destination": "/demo",
"permanent": false
}
]
"framework": "nextjs"
}
Loading