-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
29 lines (25 loc) · 953 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
function withWPEHeadless(nextConfig = {}) {
const withTM = require('next-transpile-modules')(['@wpengine/headless']);
return withTM(nextConfig);
}
module.exports = withWPEHeadless({
generateBuildId: () => 'build',
images: {
domains: ['gymtonic.local', 'demo.sulphur.com.sg', 'backend.gymtonic.sg'],
deviceSizes: [360, 375, 414, 768, 1024, 1366, 1600],
imageSizes: [64, 96, 128],
},
// https://stackoverflow.com/questions/68565169/using-tailwind-arbitrary-value-support-with-scss/68959514#68959514
webpack(config) {
// const rules = config.module.rules
// .find((rule) => typeof rule.oneOf === 'object')
// .oneOf.filter((rule) => Array.isArray(rule.use));
// rules.forEach((rule) => {
// rule.use.forEach((moduleLoader) => {
// if (moduleLoader.loader.includes('resolve-url-loader'))
// moduleLoader.options.sourceMap = false;
// });
// });
return config;
},
});