Files
router-studio/web/next.config.ts
abearxiong 8ba90c00be chore: update next.config.ts and package dependencies
- Removed turbopack configuration from next.config.ts.
- Updated @kevisual/router from ^0.0.53 to ^0.0.60 in package.json.
- Updated antd from ^6.2.0 to ^6.2.1 in package.json.
- Updated es-toolkit from ^1.43.0 to ^1.44.0 in package.json.
- Updated next from 16.1.2 to 16.1.4 in package.json.
- Modified query.ts to improve URL handling for API routing.
- Updated tsconfig.json to include baseUrl and typeRoots for better module resolution.
2026-01-21 17:31:03 +08:00

17 lines
485 B
TypeScript

import type { NextConfig } from "next";
import pkgs from "./package.json";
const isDev = process.env.NODE_ENV !== "production";
console.log(`NODE_ENV: ${process.env.NODE_ENV}`);
const basePath = isDev ? "" : `${pkgs.basename}`;
const nextConfig: NextConfig = {
/* config options here */
output: isDev ? undefined : 'export',
distDir: 'dist',
basePath: basePath,
trailingSlash: true,
transpilePackages: ['@kevisual/api', '@kevisual/router'],
};
export default nextConfig;