This commit is contained in:
taskylizard 2023-11-04 22:29:51 +05:30
parent e6aecf98a1
commit e47bfc85cc
No known key found for this signature in database
GPG Key ID: 5CABA3D642DDC497
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ jobs:
- name: Build
run: pnpm api:build
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
NITRO_PRESET: cloudflare
- name: Publish to Cloudflare

View File

@ -30,7 +30,7 @@ export default defineEventHandler(async (event) => {
if (!["bug", "suggestion", "other", "appreciate"].includes(feedbackType!) || !message) {
throw new Error("Invalid input.");
}
console.log(env.WEBHOOK_URL);
console.log(env.WEBHOOK_URL, process.env.WEBHOOK_URL);
await fetcher()
.post(env.WEBHOOK_URL, {
username: "Feedback",