Skip to content

Commit

Permalink
disable config validation when generating types
Browse files Browse the repository at this point in the history
  • Loading branch information
hissalht committed May 31, 2024
1 parent 82c7670 commit 90b0494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion confiture-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"migrate:dev": "prisma migrate dev",
"migrate:prod": "prisma migrate deploy",
"postinstall": "prisma generate && yarn generate-api-types",
"generate-api-types": "rimraf dist && nest start --entryFile generate-api-typings.js"
"generate-api-types": "rimraf dist && GENERATE_TYPES=1 nest start --entryFile generate-api-typings.js"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.218.0",
Expand Down
4 changes: 3 additions & 1 deletion confiture-rest-api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import { UserMiddleware } from "./auth/user.middleware";
imports: [
ConfigModule.forRoot({
isGlobal: true,
validationSchema: configValidationSchema
validationSchema: !process.env.GENERATE_TYPES
? configValidationSchema
: undefined
}),
FeedbackModule,
AuditsModule,
Expand Down

0 comments on commit 90b0494

Please sign in to comment.