diff --git a/next.config.js b/next.config.js index 7f0b705..8ca9368 100644 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,17 @@ /* eslint-disable */ +const path = require("path"); /** @type {import("next").NextConfig} */ const nextConfig = { reactStrictMode: true, pageExtensions: ["tsx", "ts"], + webpack: (config) => { + config.resolve.alias = { + ...config.resolve.alias, + "~": path.resolve(__dirname, "./"), + }; + return config; + }, }; module.exports = nextConfig;