This commit is contained in:
2026-01-22 23:52:55 +08:00
commit 9849f93b1e
34 changed files with 5066 additions and 0 deletions

15
next.config.ts Normal file
View File

@@ -0,0 +1,15 @@
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,
};
export default nextConfig;