diff --git a/frontend/next.config.js b/frontend/next.config.js index 3bd9857e..70743484 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -6,6 +6,10 @@ const nextConfig = { }, }, output: 'standalone', + generateBuildId: async () => { + // This could be anything, using the latest git hash + return process.env.GIT_HASH + }, } module.exports = nextConfig diff --git a/frontend/package.json b/frontend/package.json index 81bb0540..d24d4c22 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "next build -p 8080", "start": "node .next/standalone/server.js -p 8080", "lint": "next lint", "bs": "next build; next start",