-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
34 lines (33 loc) · 858 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
/** @type {import('next').NextConfig} */
const withPlugins = require('next-compose-plugins')
const withImages = require('next-images')
const webpack = require('webpack')
module.exports = withPlugins([[withImages]], {
experimental: {
// concurrentFeatures: false,
// serverComponents: false,
},
reactStrictMode: true,
images: {
domains: ['localhost', 'globe-stack-next.vercel.app'],
loader: 'akamai',
path: '/',
disableStaticImages: true,
},
serverRuntimeConfig: {
PROJECT_ROOT: __dirname,
},
plugins: [
// Work around for Buffer is undefined:
// https://github.com/webpack/changelog-v5/issues/10
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
new webpack.ProvidePlugin({
process: 'process/browser',
}),
],
compiler: {
styledComponents: true,
},
})