secrets in .env

This commit is contained in:
2025-12-14 15:22:54 +11:00
parent 98abf54a23
commit 8e5fbf3530
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -25,6 +25,7 @@ yarn-debug.log*
yarn-error.log*
# local env files
**/.env
.env.local
.env.development.local
.env.test.local

View File

@@ -4,7 +4,7 @@ import { jwt } from '@elysiajs/jwt'
export const jwtConfig = jwt({
name: 'jwt',
exp: '7d',
secret: 'Fischl von Luftschloss Narfidort'
secret: process.env.JWT_SECRET!
})
export const auth = new Elysia({ prefix: "/auth" })