Skip to content

Commit

Permalink
Fix frontend settings
Browse files Browse the repository at this point in the history
* Add check for production mode that frontend settings do not throw erros.
  • Loading branch information
K0IN committed Jun 23, 2024
1 parent 2d4c125 commit e5d54f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/frontend/src/staticsettings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const DBNAME = 'notify-db';
export const DBVERSION = 1;
// if you want to run the gui separate from the api, change this to to your api location example: "http://localhost:8787/api"
export const APIBASE = process ? process?.env?.PREACT_APP_BACKEND_URL ?? "/api" : "/api";
export const APIBASE = (typeof process !== 'undefined') ? process?.env?.PREACT_APP_BACKEND_URL ?? "/api" : "/api";

0 comments on commit e5d54f7

Please sign in to comment.