Revert "conditional basepath with IS_DEMO env"
This reverts commit 15f626b401.
This commit is contained in:
parent
15f626b401
commit
66762d023d
1 changed files with 3 additions and 3 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
import { withBotId } from "botid/next/config";
|
import { withBotId } from "botid/next/config";
|
||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const isDemo = process.env.IS_DEMO === "1";
|
const basePath = "/demo";
|
||||||
const basePath = isDemo ? "/demo" : "";
|
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
...(isDemo && { basePath, assetPrefix: "/demo-assets" }),
|
basePath,
|
||||||
|
assetPrefix: "/demo-assets",
|
||||||
env: {
|
env: {
|
||||||
NEXT_PUBLIC_BASE_PATH: basePath,
|
NEXT_PUBLIC_BASE_PATH: basePath,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue