Skip to content

Commit

Permalink
make exsisting workers deployable
Browse files Browse the repository at this point in the history
  • Loading branch information
aorcsik committed Jul 2, 2024
1 parent e18e6ec commit bf4f24c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deploy_worker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

cp -rf src/js/$1/wrangler.toml ./

shift 1

yarn wrangler deploy $@

rm ./wrangler.toml
6 changes: 6 additions & 0 deletions src/js/changelog/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name = "changelog-proxy"
main = "./src/js/changelog/worker.js"
compatibility_date = "2023-08-23"
route = "bitrise.io/changelog*"
no_bundle = true
workers_dev = true
6 changes: 6 additions & 0 deletions src/js/integrations/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name = "integrations-proxy"
main = "./src/js/integrations/worker.js"
compatibility_date = "2023-08-23"
route = "bitrise.io/integrations*"
no_bundle = true
workers_dev = true
6 changes: 6 additions & 0 deletions src/js/sitemap/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name = "sitemap-proxy"
main = "./src/js/sitemap/worker.js"
compatibility_date = "2023-08-23"
route = "bitrise.io/sitemap.xml"
no_bundle = true
workers_dev = true

0 comments on commit bf4f24c

Please sign in to comment.