Skip to content

Commit

Permalink
community json path through env
Browse files Browse the repository at this point in the history
  • Loading branch information
kevtechi committed Jun 27, 2024
1 parent b1a9853 commit 98c6cd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_WEB_BURNER_PASSWORD='x'
NEXT_PUBLIC_DB_VOUCHER_PASSWORD='x'
NEXT_PUBLIC_APP_BASE_URL='https://app.citizenwallet.xyz'
NEXT_PUBLIC_COMMUNITY_JSON_PATH='community.json'
COMMUNITY_JSON_PATH='community.json'
3 changes: 1 addition & 2 deletions src/services/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Config } from "@citizenwallet/sdk";
import { existsSync, readFileSync } from "fs";
import path from "path";

const communityPath =
process.env.NEXT_PUBLIC_COMMUNITY_JSON_PATH || "community.json";
const communityPath = process.env.COMMUNITY_JSON_PATH || "community.json";

export const readCommunityFile = (): Config | undefined => {
if (!communityFileExists()) {
Expand Down

0 comments on commit 98c6cd1

Please sign in to comment.