change to next

This commit is contained in:
xiongxiao
2026-01-15 12:32:07 +08:00
parent 62b5c5841a
commit b2f315a459
122 changed files with 9396 additions and 9354 deletions

17
web/next.config.ts Normal file
View File

@@ -0,0 +1,17 @@
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,
turbopack: { root: '/workspace' },
transpilePackages: ['@kevisual/api', '@kevisual/router'],
};
export default nextConfig;