oh no, cloudflare freaked out :(

This commit is contained in:
41666 2022-01-31 19:16:40 -05:00
parent 41fd581e6d
commit bc5e2998ed
2 changed files with 2 additions and 1 deletions

View file

@ -57,6 +57,7 @@ router.get('/', ((request: Request, { config }: Context) =>
your: 'surroundings',
warning__: '🦊',
meta: config.uiPublicURI,
version: 2,
})) as RoleypolyHandler);
router.options('*', (request: Request) => {

View file

@ -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}"