mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: better auth env variable
This commit is contained in:
@@ -61,7 +61,7 @@ Thank you for your interest in contributing to OpenCut! This document provides g
|
|||||||
|
|
||||||
# Generate a secure secret for Better Auth
|
# Generate a secure secret for Better Auth
|
||||||
BETTER_AUTH_SECRET="your-generated-secret-here"
|
BETTER_AUTH_SECRET="your-generated-secret-here"
|
||||||
BETTER_AUTH_URL="http://localhost:3000"
|
NEXT_PUBLIC_BETTER_AUTH_URL="http://localhost:3000"
|
||||||
|
|
||||||
# Redis (matches docker-compose.yaml)
|
# Redis (matches docker-compose.yaml)
|
||||||
UPSTASH_REDIS_REST_URL="http://localhost:8079"
|
UPSTASH_REDIS_REST_URL="http://localhost:8079"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
DATABASE_URL="postgresql://opencut:opencutthegoat@localhost:5432/opencut"
|
DATABASE_URL="postgresql://opencut:opencutthegoat@localhost:5432/opencut"
|
||||||
|
|
||||||
# Better Auth
|
# Better Auth
|
||||||
BETTER_AUTH_URL=http://localhost:3000
|
NEXT_PUBLIC_BETTER_AUTH_URL=http://localhost:3000
|
||||||
BETTER_AUTH_SECRET=your-secret-key-here
|
BETTER_AUTH_SECRET=your-secret-key-here
|
||||||
|
|
||||||
#Google Clients
|
#Google Clients
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export const auth = betterAuth({
|
|||||||
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
|
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
baseURL: process.env.NEXT_PUBLIC_BETTER_AUTH_URL,
|
||||||
appName: "OpenCut",
|
appName: "OpenCut",
|
||||||
trustedOrigins: ["http://localhost:3000"],
|
trustedOrigins: ["http://localhost:3000"],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user