Skip to content

Commit

Permalink
attempting to change port in build to get the azure container to conn…
Browse files Browse the repository at this point in the history
…ect. seeing if i can add next build caching.
  • Loading branch information
siddheshraze committed Feb 27, 2024
1 parent 98ccef4 commit 75689ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 75689ec

Please sign in to comment.