diff --git a/.env.example b/.env.example index b6a801e..e42a88b 100644 --- a/.env.example +++ b/.env.example @@ -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' \ No newline at end of file +COMMUNITY_JSON_PATH='community.json' +BUILD_OUTPUT='default' \ No newline at end of file diff --git a/next.config.mjs b/next.config.mjs index fd71e93..3744833 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -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