forked from Kernel360/F1-WashFit-FE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
33 lines (32 loc) · 863 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
/** @type {import('next').NextConfig} */
const path = require('path')
module.exports = {
output: 'standalone',
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
// 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
},
}