commit 52e7bd092f92e4c5080f6a502d8e51a6c74736c1
parent 017f8a6491c923184a2e37877854ebdf1b7b01de
Author: Sunny <kajimalu10@gmail.com>
Date: Sun, 19 Jul 2026 19:38:29 +0900
fix: remove unused runtime declaration and add observability logs configuration in wrangler
Diffstat:
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/app/api/relationship/route.ts b/src/app/api/relationship/route.ts
@@ -1,8 +1,6 @@
import { NextResponse } from 'next/server';
import { createClient } from '@supabase/supabase-js';
-export const runtime = 'edge';
-
export async function OPTIONS() {
return new NextResponse(null, {
status: 204,
diff --git a/src/app/api/tap/route.ts b/src/app/api/tap/route.ts
@@ -3,8 +3,6 @@ import { createClient } from '@supabase/supabase-js';
import { messages } from '@/lib/messages';
import { shouldScheduleNotification } from '@/lib/timeUtils';
-export const runtime = 'edge';
-
export async function OPTIONS() {
return new NextResponse(null, {
status: 204,
diff --git a/wrangler.jsonc b/wrangler.jsonc
@@ -16,6 +16,12 @@
"NEXT_PUBLIC_SUPABASE_ANON_KEY": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImtiYmlteXNla3p3Y3ZxbGxvYmR0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjczMDA3NjIsImV4cCI6MjA4Mjg3Njc2Mn0.zSUXB_b5foOVNp8KZaixam-nO74D38dJH0XPasvFYlM",
"NEXT_PUBLIC_ONESIGNAL_APP_ID": "04507e22-6ec2-44cf-9e5c-d37b1ab2d5e7"
},
+ "observability": {
+ "logs": {
+ "enabled": true,
+ "invocation_logs": true
+ }
+ },
"services": [
{
// Self-reference service binding, the service name must match the worker name