Skip to content

Commit 305cf89

Browse files
committed
Changes
1 parent 4729671 commit 305cf89

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

frontend/next.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const path = require('path')
2+
13
/** @type {import('next').NextConfig} */
24
const nextConfig = {
35
images: {
@@ -7,6 +9,14 @@ const nextConfig = {
79
// Disable ESLint during builds
810
ignoreDuringBuilds: true,
911
},
12+
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
13+
// Ensure path aliases work in all environments
14+
config.resolve.alias = {
15+
...config.resolve.alias,
16+
'@': path.resolve(__dirname),
17+
}
18+
return config
19+
},
1020
}
1121

1222
module.exports = nextConfig

frontend/tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"lib": ["dom", "dom.iterable", "esnext"],
44
"allowJs": true,
5-
"target": "ES6",
5+
"target": "ES2017",
66
"skipLibCheck": true,
77
"strict": true,
88
"noEmit": true,
@@ -20,7 +20,10 @@
2020
}
2121
],
2222
"paths": {
23-
"@/*": ["./*"]
23+
"@/*": ["./*"],
24+
"@/lib/*": ["./lib/*"],
25+
"@/app/*": ["./app/*"],
26+
"@/components/*": ["./components/*"]
2427
}
2528
},
2629
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],

0 commit comments

Comments
 (0)