Skip to content

Commit

Permalink
chore: fix path alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Nov 19, 2022
1 parent 408828e commit 073b5c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const nextConfig = {
reactStrictMode: true,
swcMinify: true,
webpack(config) {
config.resolve.alias['@'] = path.join(__dirname, 'pages');
config.resolve.alias['@'] = path.join(__dirname, 'src');

return config;
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"incremental": true,
"baseUrl": "./",
"paths": {
"@/*": ["pages/*"]
"@/*": ["src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
Expand Down

0 comments on commit 073b5c2

Please sign in to comment.