In terms of environment variables, is this wrong? ...
# prisma-whats-new
p
In terms of environment variables, is this wrong?
Copy code
custom:
  dev:
    APP_ENV: "development"
functions:
  processActiveContact:
    handler:
      code:
        src: ./src/processActiveContact.js
    environment:
      APP_ENV: ${self:custom.${opt:target}.APP_ENV}
    type: subscription
    query: ./src/processActiveContact.graphql
a
Seems okay
s
I’m trying something like that, but getting this error when trying to deploy:
A valid option to satisfy the declaration 'opt:target' could not be found
Wondering if I’m doing something wrong there.
Ahh, figured it out, I have to explicitly specify the target when deploying:
graphcool deploy --target dev
a
You mean opt:target doesn't work when deploying to the default target?
If so, can you create a new issue for that on Github please?
s
Yes, that’s correct. I’ll go ahead and create the issue.
a
Thanks!