mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
oh no, cloudflare freaked out :(
This commit is contained in:
parent
41fd581e6d
commit
bc5e2998ed
2 changed files with 2 additions and 1 deletions
|
@ -57,6 +57,7 @@ router.get('/', ((request: Request, { config }: Context) =>
|
|||
your: 'surroundings',
|
||||
warning__: '🦊',
|
||||
meta: config.uiPublicURI,
|
||||
version: 2,
|
||||
})) as RoleypolyHandler);
|
||||
|
||||
router.options('*', (request: Request) => {
|
||||
|
|
|
@ -31,7 +31,7 @@ resource "null_resource" "cloudflare_workers_script_backend" {
|
|||
|
||||
provisioner "local-exec" {
|
||||
command = <<EOF
|
||||
curl -X PUT "https://api.cloudflare.com/client/v4/accounts/${var.cloudflare_account_id}/workers/scripts/${local.name}" \
|
||||
curl -f -sSL -X PUT "https://api.cloudflare.com/client/v4/accounts/${var.cloudflare_account_id}/workers/scripts/${local.name}" \
|
||||
-H "Authorization: Bearer ${var.cloudflare_api_token}" \
|
||||
-F "script=@${data.local_file.script.filename};filename=${basename(data.local_file.script.filename)};type=application/javascript+module" \
|
||||
-F "metadata=@${local_file.bindings.filename}"
|
||||
|
|
Loading…
Add table
Reference in a new issue