Skip to content

Commit

Permalink
chore: add env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Acidiney Dias committed Feb 7, 2024
1 parent 0a52d31 commit ce64ba4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,23 @@ export async function configure(command: ConfigureCommand) {
rcFile.addProvider('@acidiney/bull-queue/queue_provider')
rcFile.addCommand('@acidiney/bull-queue/commands')
})

/**
* Add environment variables
*/
await codemods.defineEnvVariables({
REDIS_HOST: '127.0.0.1',
REDIS_PORT: '6379',
REDIS_PASSWORD: '',
})

/**
* Validate environment variables
*/
await codemods.defineEnvValidations({
variables: {
REDIS_HOST: `Env.schema.string({ format: 'host' })`,
REDIS_PORT: 'Env.schema.number()',
},
})
}

0 comments on commit ce64ba4

Please sign in to comment.