From 2f62bd3fd6094dbfb8cbb0c4453891c5a9f0191c Mon Sep 17 00:00:00 2001 From: Tahsin Date: Sat, 1 Jun 2024 10:51:19 -0400 Subject: [PATCH] fix build issue --- next.config.mjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index d799d7b..3a82cb9 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,8 +1,20 @@ +import path from "path"; + +const __dirname = path.resolve(); + /** @type {import('next').NextConfig} */ const nextConfig = { images: { remotePatterns: [{ protocol: "https", hostname: "**" }], }, + webpack: (config) => { + config.resolve.alias = { + ...config.resolve.alias, + "@": path.resolve(__dirname, "./"), + }; + + return config; + }, }; export default nextConfig;