feat: add prod url

This commit is contained in:
Max Koon
2025-10-20 16:27:34 -04:00
parent 9aad5a7e4e
commit d8e5e8e522
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ const app = getHono();
app.use(
"/api/*",
cors({
origin: 'https://money.koon.us',
origin: ['https://money.koon.us','http://localhost:8081'],
allowMethods: ["POST", "GET", "OPTIONS"],
allowHeaders: ["Content-Type", "Authorization"],
credentials: true,

View File

@@ -5,7 +5,7 @@ export default function Auth() {
const onLogin = () => {
authClient.signIn.oauth2({
providerId: "koon-family",
callbackURL: "http://localhost:8081"
callbackURL: process.env.NODE_ENV == 'production' ? 'https://money.koon.us' : "http://localhost:8081"
});
};