forked from Kernel360/F1-WashFit-FE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
36 lines (35 loc) · 935 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
35
36
/** @type {import('next').NextConfig} */
const path = require('path');
module.exports = {
output: 'standalone',
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
images: {
domains: ['i.ytimg.com', 'yt3.ggpht.com'],
},
// async rewrites() {
// return [
// {
// source: "/:path*",
// destination: `${process.env.NEXT_PUBLIC_BASE_URL}/:path*`,
// },
// ];
// },
webpack: (config, context) => {
if (context?.isServer) {
if (Array.isArray(config.resolve.alias)) {
config.resolve.alias.push({ name: 'msw/browser', alias: false });
} else {
config.resolve.alias['msw/browser'] = false;
}
} else {
if (Array.isArray(config.resolve.alias)) {
config.resolve.alias.push({ name: 'msw/node', alias: false });
} else {
config.resolve.alias['msw/node'] = false;
}
}
return config;
},
};