fix
This commit is contained in:
parent
e6aecf98a1
commit
e47bfc85cc
1
.github/workflows/deploy-api.yml
vendored
1
.github/workflows/deploy-api.yml
vendored
@ -31,6 +31,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm api:build
|
run: pnpm api:build
|
||||||
env:
|
env:
|
||||||
|
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
|
||||||
NITRO_PRESET: cloudflare
|
NITRO_PRESET: cloudflare
|
||||||
|
|
||||||
- name: Publish to Cloudflare
|
- name: Publish to Cloudflare
|
||||||
|
@ -30,7 +30,7 @@ export default defineEventHandler(async (event) => {
|
|||||||
if (!["bug", "suggestion", "other", "appreciate"].includes(feedbackType!) || !message) {
|
if (!["bug", "suggestion", "other", "appreciate"].includes(feedbackType!) || !message) {
|
||||||
throw new Error("Invalid input.");
|
throw new Error("Invalid input.");
|
||||||
}
|
}
|
||||||
console.log(env.WEBHOOK_URL);
|
console.log(env.WEBHOOK_URL, process.env.WEBHOOK_URL);
|
||||||
await fetcher()
|
await fetcher()
|
||||||
.post(env.WEBHOOK_URL, {
|
.post(env.WEBHOOK_URL, {
|
||||||
username: "Feedback",
|
username: "Feedback",
|
||||||
|
Loading…
Reference in New Issue
Block a user