mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
* feat: support subdirectory deployment (NEXT_PUBLIC_BASE_PATH) * removed unwanted check and fix favicon issue * Use getAssetUrl for manifest assets to avoid undefined NEXT_PUBLIC_BASE_PATH * Add validation warning for NEXT_PUBLIC_BASE_PATH format --------- Co-authored-by: dayuan.jiang <jdy.toh@gmail.com>
16 lines
500 B
TypeScript
16 lines
500 B
TypeScript
import type { NextConfig } from "next"
|
|
import packageJson from "./package.json"
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
output: "standalone",
|
|
// Support for subdirectory deployment (e.g., https://example.com/nextaidrawio)
|
|
// Set NEXT_PUBLIC_BASE_PATH environment variable to your subdirectory path (e.g., /nextaidrawio)
|
|
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "",
|
|
env: {
|
|
APP_VERSION: packageJson.version,
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|