hez
05/23/2018, 8:43 PMprisma.yml
(i.e. with .env.prod
, .env.dev
, etc) and the index.js
file?Pkmmte
05/23/2018, 10:50 PMcustom
section in your prisma.yml
should work. For example:
custom:
staging:
WEBHOOK_URL: "<https://staging.catz.app/hook>"
prod:
WEBHOOK_URL: "<https://catz.app/hook>"
functions:
catCreate:
type: operationBefore
operation: Cat.create
handler:
webhook: ${self.custom.${opt:target}.WEBHOOK_URL}