Open
Description
environment variables not working with GraphQL Handler endpoint when invoking subscriptions. I have to give real URL.
I even tried to provide subscriptionsEndpoint
via environment variables without any luck.
This is preventing us deploying to different environments without hardcoding endpoints...
Queries and Mutations works fine when setting GraphQL endpoint via environment variables.
- name: mysub
handler:
graphql:
# environment variables not working with graphql subscriptions endpoint
# endpoint: '{env.MY_SEB_ENDPOINT}'
endpoint: http://localhost:8080/graphql
# subscriptionsEndpoint: ws://localhost:8080/graphql
Error
/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:675
throw new SyntaxError(`Invalid URL: ${address}`);
^
SyntaxError: Invalid URL: {env.MY_SEB_ENDPOINT}
Metadata
Metadata
Assignees
Labels
No labels