wrangler: extract BASE_URL into config

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-11-19 14:15:49 +05:30
parent cc1d50f8e7
commit d2e39e2529
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,5 @@
import { getAssetFromKV } from '@cloudflare/kv-asset-handler';
const BASE_URL = 'https://msfjarvis.dev/';
const GITHUB_USERNAME = 'msfjarvis';
const APS_SLUG = 'Android-Password-Store/Android-Password-Store';
const GITHUB_URL = `https://github.com/${GITHUB_USERNAME}`;

View File

@ -3,6 +3,7 @@ type = "webpack"
webpack_config = "webpack.config.js"
workers_dev = false
route = "staging.msfjarvis.dev/*"
vars = { BASE_URL = "https://staging.msfjarvis.dev/" }
[site]
bucket = "./public"
@ -11,3 +12,4 @@ entry-point = "workers-site"
[env.production]
name = "msfjarvis-dev"
route = "msfjarvis.dev/*"
vars = { BASE_URL = "https://msfjarvis.dev/" }