wrangler: extract BASE_URL into config
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
cc1d50f8e7
commit
d2e39e2529
|
@ -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}`;
|
||||
|
|
|
@ -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/" }
|
||||
|
|
Loading…
Reference in New Issue