-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
40 lines (38 loc) · 1.05 KB
/
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
35
36
37
38
39
40
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
module.exports = (phase) => {
const isDev = phase === PHASE_DEVELOPMENT_SERVER;
return {
eslint: {
dirs: ['.'],
},
poweredByHeader: false,
trailingSlash: true,
basePath: '',
eslint: {
ignoreDuringBuilds: true,
},
// The starter code load resources from `public` folder with `router.basePath` in React components.
// So, the source code is "basePath-ready".
// You can remove `basePath` if you don't need it.
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: !JSON.parse(process.env.NEXT_PUBLIC_MINIO_USE_SSL) ? 'http' : 'https',
hostname: process.env.NEXT_PUBLIC_MINIO_END_POINT,
},
],
},
experimental: {
serverActions: true,
},
compiler: {
// see https://styled-components.com/docs/tooling#babel-plugin for more info on the options.
styledComponents: {
displayName: isDev,
ssr: true,
fileName: isDev,
},
},
};
};