init
This commit is contained in:
14
next.config.ts
Normal file
14
next.config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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: 'export',
|
||||
distDir: 'dist',
|
||||
basePath: basePath,
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user