-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
48 lines (47 loc) · 1.32 KB
/
next.config.js
File metadata and controls
48 lines (47 loc) · 1.32 KB
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
42
43
44
45
46
47
48
/** @type {import('next').NextConfig} */
const path = require('path');
// const withImages = require('next-images');
// module.exports = withImages();
module.exports = {
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
// prependData: '@import "./globals.scss";',
},
env: {
BE_URL: process.env.BE_URL,
API_URL: process.env.API_URL,
IMAGE_PATH: process.env.IMAGE_PATH,
PLATFORM_FEE_ID: process.env.PLATFORM_FEE_ID,
KLAVIYO_PUBLIC_KEY: process.env.KLAVIYO_PUBLIC_KEY,
},
webpack(config, {
buildId, dev, isServer, defaultLoaders, webpack,
}) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
// eslint-disable-next-line no-param-reassign
config.optimization.splitChunks.cacheGroups = { };
// eslint-disable-next-line no-param-reassign
config.optimization.minimize = true;
// return config
return config;
},
// webpack(config) {
// config.module.rules.push({
// test: /\.(svg|png)$/, // Your extension
// use: {
// loader: 'url-loader',
// options: {
// limit: 100000,
// name: '[name].[ext]',
// esModule: false,
// },
// },
// });
// // /\.(eot|woff|woff2|ttf|svg|png|jpg|gif)$/
// return config;
// },
};