handler: source BASE_URL from config

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-12-05 14:05:30 +05:30
parent c3748cf3a6
commit 1aa2d00ea5
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80
2 changed files with 2 additions and 2 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

@ -2,6 +2,7 @@ name = "redirekt"
type = "webpack"
zone_id = "**redacted**"
account_id = "**redacted**"
routes = ["msfjarvis.dev/*", "download.msfjarvis.dev/*"]
routes = ["example.com/*"]
workers_dot_dev = false
webpack_config = "webpack.config.js"
vars = { BASE_URL = "https://example.com/" }