-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnext.config.mjs
38 lines (37 loc) · 1.07 KB
/
next.config.mjs
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
export default (phase) => {
const d = new Date();
const buildid = `${d.getUTCFullYear()}${
d.getUTCMonth() + 1
}${d.getUTCDate()}-${d.getUTCHours()}${d.getUTCMinutes()}.${d.getUTCMilliseconds()}`;
return {
env: {
BUILD_ID: buildid,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'static.gallformers.org',
},
{
protocol: 'https',
hostname: 'dhz6u1p7t6okk.cloudfront.net',
},
],
},
generateBuildId: async () => {
//TODO convert this to the latest git hash
return buildid;
},
experimental: {
forceSwcTransforms: true,
esmExternals: false,
},
// strictMode: true,
// this causes failures on Linux. Not sure why but for now disabling it.
// i18n: {
// locales: ['en'],
// defaultLocale: 'en',
// },
};
};