From effaf07ecb797c5db92d1b3fe34c69f1d750ac10 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 12 Feb 2020 23:28:28 +0300 Subject: [PATCH] import from src --- next.config.js | 4 ++++ tsconfig.json | 1 + 2 files changed, 5 insertions(+) diff --git a/next.config.js b/next.config.js index 4fcaac27..a59905f2 100644 --- a/next.config.js +++ b/next.config.js @@ -22,6 +22,10 @@ module.exports = withCss(withSass({ // mySecret: 'secret', // secondSecret: process.env.SECOND_SECRET // Pass through env variables }, + webpack(config) { + config.resolve.modules.push(__dirname) + return config; + }, exportPathMap: async (defaultPathMap, { dev }) => { if (dev) { return null diff --git a/tsconfig.json b/tsconfig.json index 48ca14af..712bf7a4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "baseUrl": ".", "target": "es5", "lib": [ "dom",