Switch to next.config.mjs (#15)

Reviewed-on: #15
This commit is contained in:
Thomas E Lackey 2024-07-25 17:19:46 +00:00
parent 05d0d29e61
commit cdb4b8a475
3 changed files with 20 additions and 13 deletions

View File

@ -1,12 +1,13 @@
/** @type {import('next').NextConfig} */ import withPWA from 'next-pwa';
const withPWA = require('next-pwa')({
dest: 'public',
})
module.exports = withPWA({ const config = {
env: { env: {
CERC_TEST_WEBAPP_CONFIG1: process.env.CERC_TEST_WEBAPP_CONFIG1, CERC_TEST_WEBAPP_CONFIG1: process.env.CERC_TEST_WEBAPP_CONFIG1,
CERC_TEST_WEBAPP_CONFIG2: process.env.CERC_TEST_WEBAPP_CONFIG2, CERC_TEST_WEBAPP_CONFIG2: process.env.CERC_TEST_WEBAPP_CONFIG2,
CERC_WEBAPP_DEBUG: process.env.CERC_WEBAPP_DEBUG, CERC_WEBAPP_DEBUG: process.env.CERC_WEBAPP_DEBUG,
}, }
}) };
const nextConfig = withPWA({ dest: 'public' })(config);
export default nextConfig;

View File

@ -16,6 +16,6 @@
"devDependencies": { "devDependencies": {
"@types/node": "17.0.4", "@types/node": "17.0.4",
"@types/react": "17.0.38", "@types/react": "17.0.38",
"typescript": "4.5.4" "typescript": "^5"
} }
} }

View File

@ -1,20 +1,26 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "preserve",
"incremental": true "incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }