-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
34 lines (30 loc) · 921 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
webpack(config) {
// eslint-disable-next-line no-param-reassign
config.resolve = {
alias: {
'@assets': path.resolve(__dirname, 'src/assets'),
'@app.component': path.resolve(__dirname, 'src/app.component'),
'@app.feature': path.resolve(__dirname, 'src/app.feature'),
'@app.modules': path.resolve(__dirname, 'src/app.modules'),
'@stories': path.resolve(__dirname, 'src/app.stories'),
'@styles': path.resolve(__dirname, 'styles'),
},
...config.resolve,
};
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
env: {
API_URL: 'http://ec2-15-165-255-15.ap-northeast-2.compute.amazonaws.com:8080',
},
};
module.exports = nextConfig;