-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
35 lines (31 loc) · 903 Bytes
/
next.config.js
File metadata and controls
35 lines (31 loc) · 903 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
/** @type {import('next').NextConfig} */
// const webpack = require('webpack');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
// const { parsed: myEnv } = require('dotenv').config({
// path: './config/.env',
// });
const nextConfig = {
productionBrowserSourceMaps: false,
env: {
SERVER_URL: process.env.SERVER_URL,
},
reactStrictMode: true,
swcMinify: true,
experimental: { images: { allowFutureImage: true } },
// webpack(config) {
// // all vars end up in the client -
// config.plugins.push(new webpack.EnvironmentPlugin(myEnv));
// return config;
// },
experimental: {
externalDir:
true |
{
enabled: true,
silent: true,
},
},
};
module.exports = withBundleAnalyzer(nextConfig);