Skip to content

Commit 6f6b332

Browse files
add webpack config alias
1 parent 12968be commit 6f6b332

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'path';
12
import './src/env.mjs';
23

34
/**@type {import('next').NextConfig}*/
@@ -6,6 +7,10 @@ const config = {
67
experimental: {
78
viewTransition: true
89
},
10+
webpack(config) {
11+
config.resolve.alias['@'] = path.resolve(__dirname, 'src');
12+
return config;
13+
},
914
async redirects() {
1015
return [
1116
{

0 commit comments

Comments
 (0)