Skip to content

Commit

Permalink
chore: adjust configuration for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Sep 26, 2023
1 parent 4e8b6d9 commit 037b9ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "node-with-r2-poc",
"name": "release-cloudflare-worker",
"version": "0.0.0",
"private": true,
"type": "module",
Expand Down
7 changes: 4 additions & 3 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name = "dist-worker"
main = "src/worker.ts"
compatibility_date = "2023-08-07"
account_id = "07be8d2fbc940503ca1be344714cb0d1"


# Dev (default)
[vars]
Expand All @@ -20,7 +22,7 @@ bucket_name = "dist-dev"
[env.staging.vars]
workers_dev = true
ENVIRONMENT = 'staging'
DIRECTORY_LISTING = 'restricted'
DIRECTORY_LISTING = 'on'
FILE_CACHE_CONTROL = 'public, max-age=3600, s-maxage=14400'
DIRECTORY_CACHE_CONTROL = 'public, max-age=3600, s-maxage=14400'

Expand All @@ -32,9 +34,8 @@ bucket_name = "dist-staging"
# Prod
[env.prod]
[env.prod.vars]
workers_dev = true # for now we're using a workers.dev domain
ENVIRONMENT = 'prod'
DIRECTORY_LISTING = 'restricted'
DIRECTORY_LISTING = 'on'
FILE_CACHE_CONTROL = 'public, max-age=3600, s-maxage=14400'
DIRECTORY_CACHE_CONTROL = 'public, max-age=3600, s-maxage=14400'

Expand Down

0 comments on commit 037b9ce

Please sign in to comment.