format
This commit is contained in:
parent
0cebed8923
commit
2056c5978b
2
.github/workflows/deploy-api.yml
vendored
2
.github/workflows/deploy-api.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm api:build
|
run: pnpm api:build
|
||||||
env:
|
env:
|
||||||
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
|
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
|
||||||
NITRO_PRESET: cloudflare
|
NITRO_PRESET: cloudflare
|
||||||
|
|
||||||
- name: Publish to Cloudflare
|
- name: Publish to Cloudflare
|
||||||
|
@ -46,6 +46,8 @@ async function handleSubmit(type?: string) {
|
|||||||
const response = await fetch("https://feedback.tasky.workers.dev", {
|
const response = await fetch("https://feedback.tasky.workers.dev", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
'Access-Control-Allow-Origin':'*',
|
||||||
|
'Access-Control-Allow-Methods':'POST,PATCH,OPTIONS'
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
|
Loading…
Reference in New Issue
Block a user