From 91b2d111988f7453be75c705fae1b3b4df938ed5 Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Fri, 24 Jan 2025 17:51:29 +0700 Subject: [PATCH] update: Only allow tsx and ts page ext --- next.config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/next.config.js b/next.config.js index b8dbbb3..7f0b705 100644 --- a/next.config.js +++ b/next.config.js @@ -3,11 +3,7 @@ /** @type {import("next").NextConfig} */ const nextConfig = { reactStrictMode: true, - webpack: (config) => { - config.resolve.alias.canvas = false; - - return config; - }, + pageExtensions: ["tsx", "ts"], }; module.exports = nextConfig;