Skip to content

Commit

Permalink
adjust build type through env
Browse files Browse the repository at this point in the history
  • Loading branch information
kevtechi committed Jun 27, 2024
1 parent af41e35 commit 96821b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NEXT_PUBLIC_WEB_BURNER_PASSWORD='x'
NEXT_PUBLIC_DB_VOUCHER_PASSWORD='x'
NEXT_PUBLIC_APP_BASE_URL='https://app.citizenwallet.xyz'
COMMUNITY_JSON_PATH='community.json'
COMMUNITY_JSON_PATH='community.json'
BUILD_OUTPUT='default'
5 changes: 4 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
output:
process.env.BUILD_OUTPUT === "default" || !process.env.BUILD_OUTPUT
? undefined
: process.env.BUILD_OUTPUT,
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
Expand Down

0 comments on commit 96821b3

Please sign in to comment.