generated from electron-react-boilerplate/electron-react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to latest electron. Add some form of csp.
- Loading branch information
1 parent
442e490
commit 28fcaa9
Showing
4 changed files
with
34 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
const useProduction = process.env.NODE_ENV === 'production'; | ||
|
||
export const serviceUrl = useProduction | ||
? 'https://api.dive.littledev.nl/api' | ||
: 'http://api.littledivelog.local/api'; | ||
export const serviceOrigin = useProduction | ||
? 'https://api.dive.littledev.nl' | ||
: 'http://api.littledivelog.local' | ||
|
||
export const serviceUrl = `${serviceOrigin}/api`; | ||
|
||
export default serviceUrl; |
Oops, something went wrong.