Skip to content

Commit 3418283

Browse files
introduce new API_BASE_URL
1 parent cbd5fd4 commit 3418283

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

assets/js/const.template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use strict";
22

3+
const API_BASE_URL = '{{ .Site.Params.apiBaseURL }}';
34
const LEGACY_API_URL = '{{ .Site.Params.legacyApiUrl }}';
45
const PADDLE_ENABLE_SANDBOX = {{ .Site.Params.paddleEnableSandbox }};
56
const PADDLE_TOKEN = {{ .Site.Params.paddleToken }};

config/development/params.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
apiBaseURL = "http://localhost:3300"
12
legacyApiUrl = "http://localhost"
23
legacyStoreUrl = "http://localhost:8787/api"
34

config/production/params.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
apiBaseURL = "https://api.cryptomator.org"
12
legacyApiUrl = "http://api.cryptomator.org"
23
legacyStoreUrl = "https://store.cryptomator.org/api"
34

config/staging/params.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
apiBaseURL = "https://api-staging.cryptomator.org"
12
legacyApiUrl = "http://localhost"
23
legacyStoreUrl = "http://localhost:8787/api"
34

0 commit comments

Comments
 (0)