-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.js
More file actions
41 lines (38 loc) · 869 Bytes
/
Copy pathnext.config.js
File metadata and controls
41 lines (38 loc) · 869 Bytes
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
35
36
37
38
39
40
41
const path = require('path');
const { i18n } = require('./next-i18next.config');
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
output: 'standalone',
webpack5: true,
webpack: (config) => {
const modifiedConfig = { ...config };
modifiedConfig.module.rules.push({
test: /(\\|\/)(\.storybook|stories)(\\|\/)/,
loader: 'ignore-loader',
});
modifiedConfig.resolve.fallback = {
fs: false,
};
modifiedConfig.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return modifiedConfig;
},
async rewrites() {
return [
{
source: '/back-end-api/:path*',
destination: `http://koliving-backend.net/:path*`,
},
];
},
};
module.exports = {
...nextConfig,
i18n,
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
};