-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Open
Description
Node Version
24.11.0
NPM/Yarn/PNPM Version
PNPM 10.20.0
Strapi Version
5.30.0
Operating System
MacOS
Database
PostgreSQL
Javascript or Typescript
Typescript
Reproduction URL
n/a
Bug Description
When no JWT_SECRET/ADMIN_JWT_SECRET are present running strapi ts:generate-types will cause error:
Error: Missing admin.auth.secret configuration. The SessionManager requires a JWT secret
Steps to Reproduce
- Remove JWT_SECRET/ADMIN_JWT_SECRET.
- Run strapi ts:generate-types
- Observe error.
Expected Behavior
No error.
Logs
Code Snippets
No response
Media
No response
Additional information
This is a regression, the last version I tested ~5.20 I don't believe had this issue. This problematic because in CI environments, code check step you might not have specific environment and I don't see reason why it is JWT is needed for types generation.
Confirmation Checklist
- I have checked the existing issues for duplicates.
- I agree to follow this project's Code of Conduct.
Metadata
Metadata
Assignees
Labels
No labels