From fc607092f25e20f2cbce2f271659e88a0f49e021 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Fri, 1 Nov 2024 17:49:59 +0100 Subject: [PATCH] Add Next.js configuration with custom webpack alias and remote image patterns in next.config.mjs; update tsconfig.json paths --- next.config.ts => next.config.mjs | 2 +- tsconfig.json | 17 +++++------------ 2 files changed, 6 insertions(+), 13 deletions(-) rename next.config.ts => next.config.mjs (91%) diff --git a/next.config.ts b/next.config.mjs similarity index 91% rename from next.config.ts rename to next.config.mjs index e70ea5f..6078b15 100644 --- a/next.config.ts +++ b/next.config.mjs @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - webpack: (config : any) => { + webpack: (config) => { config.resolve.alias.canvas = false; return config; diff --git a/tsconfig.json b/tsconfig.json index f48e7ee..dde88af 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }