Skip to content

Commit 71e61da

Browse files
committed
Set epoch as default build id
1 parent 40592b9 commit 71e61da

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

next.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ module.exports = {
33
// This sets environment variable for SSR
44
env: {
55
NEXT_PUBLIC_PUBLIC_URL: process.env.NEXT_PUBLIC_PUBLIC_URL,
6-
// NEXT_PUBLIC_CMS_URL: process.env.NEXT_PUBLIC_CMS_URL,
7-
// NEXT_PUBLIC_GTAG_ID: process.env.NEXT_PUBLIC_GTAG_ID,
6+
//NEXT_PUBLIC_CMS_URL: process.env.NEXT_PUBLIC_CMS_URL,
7+
//NEXT_PUBLIC_GTAG_ID: process.env.NEXT_PUBLIC_GTAG_ID,
88
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
99
},
10-
// @see https://github.com/zeit/next.js/wiki/Deployment
11-
// When process.env.BUILD_ID is undefined, fall back to the default
12-
generateBuildId: async () => (process.env.BUILD_ID ? process.env.BUILD_ID : null),
10+
generateBuildId: async () => process.env.BUILD_ID ?? new Date().getTime(),
1311
eslint: { ignoreDuringBuilds: true },
1412
poweredByHeader: false,
1513
reactStrictMode: true,

0 commit comments

Comments
 (0)