File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ GOOGLE_CLIENT_ID=
44GOOGLE_CLIENT_SECRET =
55BETTER_AUTH_SECRET =
66BETTER_AUTH_URL = http://localhost:3000 # Base URL of your app
7+ COOKIE_DOMAIN =
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export const getEnv = (c: Context) => createEnv({
66 server : {
77 FRONTEND_URL : z . string ( ) . url ( ) ,
88 DB_FILE_NAME : z . string ( ) . url ( ) ,
9+ COOKIE_DOMAIN : z . string ( ) . url ( ) ,
910 BETTER_AUTH_SECRET : z . string ( ) ,
1011 BETTER_AUTH_URL : z . string ( ) . url ( ) ,
1112 GOOGLE_CLIENT_ID : z . string ( ) ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const auth = (c: Context) => betterAuth({
2222 advanced : {
2323 crossSubDomainCookies : {
2424 enabled : true ,
25- domain : getEnv ( c ) . FRONTEND_URL . replace ( / ^ h t t p s ? : \/ \/ / , '' ) ,
25+ domain : getEnv ( c ) . COOKIE_DOMAIN ,
2626 } ,
2727 } ,
2828} )
Original file line number Diff line number Diff line change 66app = ' periodos'
77primary_region = ' hkg'
88
9+ [env ]
10+ FRONTEND_URL = " https://periodos.nirjan.net"
11+ COOKIE_DOMAIN = " https://nirjan.net"
12+
913[build ]
1014
1115[http_service ]
You can’t perform that action at this time.
0 commit comments