Add Next.js configuration with custom webpack alias and remote image patterns in next.config.mjs; update tsconfig.json paths

This commit is contained in:
Bram Suurd
2024-11-01 17:49:59 +01:00
parent c91cfa860d
commit fc607092f2
2 changed files with 6 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config : any) => {
webpack: (config) => {
config.resolve.alias.canvas = false;
return config;

View File

@@ -1,10 +1,6 @@
{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@@ -22,9 +18,7 @@
}
],
"paths": {
"@/*": [
"./src/*"
]
"@/*": ["./src/*"]
},
"target": "ES2017"
},
@@ -32,9 +26,8 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
".next/types/**/*.ts",
"next.config.mjs",
],
"exclude": [
"node_modules"
]
"exclude": ["node_modules"]
}