Make first time setup smoother
This commit is contained in:
parent
2866c4e1b7
commit
0a14bc2772
3 changed files with 9 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ Simple steps:
|
||||||
|
|
||||||
- `yarn install`
|
- `yarn install`
|
||||||
- `yarn addsecret`
|
- `yarn addsecret`
|
||||||
|
- `yarn createkv` (follow `wrangler.toml` instructions)
|
||||||
- `yarn deploy`
|
- `yarn deploy`
|
||||||
|
|
||||||
## Deploy (More involved)
|
## Deploy (More involved)
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
"deploy": "wrangler publish",
|
"deploy": "wrangler publish",
|
||||||
"dev": "wrangler dev",
|
"dev": "wrangler dev",
|
||||||
"addsecret": "wrangler secret put WORKERLINKS_SECRET",
|
"addsecret": "wrangler secret put WORKERLINKS_SECRET",
|
||||||
|
"createkv": "wrangler kv:namespace create KV && echo '^^^ Replace the binding on line 12 of wrangler.toml with this' ^^^",
|
||||||
"build": "wrangler publish --dry-run --outdir=./dist"
|
"build": "wrangler publish --dry-run --outdir=./dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,17 @@ main = "src/index.ts"
|
||||||
#logpush = true
|
#logpush = true
|
||||||
|
|
||||||
# Change these!!
|
# Change these!!
|
||||||
account_id = "ece1d09b06af2ced51407c97505ea0cc"
|
kv_namespaces = [
|
||||||
kv_namespaces = [ { binding = "KV", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }]
|
|
||||||
|
# Replace below line with your namespace ID ('yarn createkv' output)
|
||||||
|
{ binding = "KV", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
compatibility_flags = []
|
compatibility_flags = []
|
||||||
compatibility_date = "2023-03-05"
|
compatibility_date = "2023-03-05"
|
||||||
|
|
||||||
# Remove or comment out the route line if using workers_dev
|
# Remove or comment out the route line if using workers_dev (and set below to true)
|
||||||
workers_dev = false
|
workers_dev = false
|
||||||
route = { pattern = "erisa.link/*", zone_name = "erisa.link" }
|
route = { pattern = "erisa.link/*", zone_name = "erisa.link" }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue