Skip to content

Commit

Permalink
feat: add BACKEND_URL env variable to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedAhkam committed Jul 18, 2023
1 parent bd5d410 commit e60efee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
NEXT_PUBLIC_FLOW_ENV=
NEXT_PUBLIC_EMULATOR_API=

BACKEND_URL=localhost:8000
4 changes: 4 additions & 0 deletions frontend/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// ENV variables
export const BACKEND_URL = process.env.BACKEND_URL || "localhost:8000";

// UI behaviour
export const DEFAULT_ACTIVE_DASHBOARD_TAB = "overview";

0 comments on commit e60efee

Please sign in to comment.