From eea5ec0eab685725ab2e435a8243fab6eda37cc1 Mon Sep 17 00:00:00 2001 From: bagas Date: Tue, 30 Dec 2025 17:31:51 +0700 Subject: [PATCH] fix: add staging domain to trusted origin --- lib/auth.ts | 1 + tsconfig.json | 24 +++++++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/lib/auth.ts b/lib/auth.ts index d55d5a8..6bf10e4 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -4,6 +4,7 @@ import { db } from "@/lib/db"; import * as schema from "@/lib/schema/auth" export const auth = betterAuth({ + trustedOrigins: ["https://staging.tunnl.live"], socialProviders: { google: { clientId: process.env.GOOGLE_CLIENT_ID!, diff --git a/tsconfig.json b/tsconfig.json index d8b9323..e7ff3a2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -11,7 +15,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", + "jsx": "react-jsx", "incremental": true, "plugins": [ { @@ -19,9 +23,19 @@ } ], "paths": { - "@/*": ["./*"] + "@/*": [ + "./*" + ] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + ".next/dev/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }