main
fadeaway 8 months ago
parent db0e9d8e78
commit 0c51f08d54

@ -4,9 +4,9 @@ const basePath = '/html';
const nextConfig = { const nextConfig = {
output: 'export', output: 'export',
distDir: 'html',
basePath, basePath,
env: { basePath }, env: { basePath },
...(process.env.NODE_ENV === 'production' ? { distDir: 'html' } : {}),
}; };
export default nextConfig; export default nextConfig;

@ -3,8 +3,8 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 80", "dev": "rm -rf html & next dev -p 80",
"build": "next build", "build": "rm -rf html & next build",
"start": "next start -p 80", "start": "next start -p 80",
"lint": "eslint src --fix --ext .ts,.tsx,.js,.jsx,.mdx,.md,.json,.mjs --max-warnings 0" "lint": "eslint src --fix --ext .ts,.tsx,.js,.jsx,.mdx,.md,.json,.mjs --max-warnings 0"
}, },

@ -1,6 +1,10 @@
{ {
"compilerOptions": { "compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"], "lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
@ -18,9 +22,20 @@
} }
], ],
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": [
"./src/*"
]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "html/types/**/*.ts"], "include": [
"exclude": ["node_modules"] "next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"html/types/**/*.ts",
"out/types/**/*.ts"
],
"exclude": [
"node_modules"
]
} }

Loading…
Cancel
Save