@ -4,9 +4,9 @@ const basePath = '/html';
const nextConfig = {
output: 'export',
distDir: 'html',
basePath,
env: { basePath },
...(process.env.NODE_ENV === 'production' ? { distDir: 'html' } : {}),
};
export default nextConfig;
@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 80",
"build": "next build",
"dev": "rm -rf html & next dev -p 80",
"build": "rm -rf html & next build",
"start": "next start -p 80",
"lint": "eslint src --fix --ext .ts,.tsx,.js,.jsx,.mdx,.md,.json,.mjs --max-warnings 0"
},
@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@ -18,9 +22,20 @@
}
"paths": {
"@/*": ["./src/*"]
"@/*": [
"./src/*"
]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "html/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"html/types/**/*.ts",
"out/types/**/*.ts"
"exclude": [
"node_modules"