We should create a section on actions docs where we show examples.
These examples can include:
I think it would be good to explain how to handle following use case:
HASURA_GRAPHQL_ACTIONS_HANDLER_WEBHOOK_BASEURLHowever from this point on it is not clear what this flag does, we can only assume. If I am correct we need to clarify these things
/checkout or do I still need to specify full url?/ at the end of it, do I need to specify it in handler?http://host.docker.internal:3000 as default value in my handler input, perhaps it should be changed to actual flag value?I am also having the same doubts @IljaDaderko has — and I have no clue how to move forward about this. Did you figure it out?
@XVincentX Did you figure this out. If not can you share exactly where you are stuck.
Just to clarify, the action handler should be defined as {{<ACTION_BASE_ENV_VAR>}}/<endpoint-in-the service> (<ACTION_BASE_ENV_VAR> is a placeholder for the env var you want to use) and then you can set different values for the <ACTION_BASE_ENV_VAR> in your separate environments.
I figured it out, thanks.
V.
Hey @XVincentX @rikinsk @marionschleifer Does the value I set in HASURA_GRAPHQL_ACTIONS_HANDLER_WEBHOOK_BASEURL env var gets mapped to ACTION_BASE_ENV_VAR or I can name my ENV VAR (viz MY_ENV_VAR) anything I want and the use it in mustache {{MY_ENV_VAR}} syntax. If yes what is significance of HASURA_GRAPHQL_ACTIONS_HANDLER_WEBHOOK_BASEURL env var? I still did not find any reference in hasura docs apart from this
Most helpful comment
I think it would be good to explain how to handle following use case:
HASURA_GRAPHQL_ACTIONS_HANDLER_WEBHOOK_BASEURLHowever from this point on it is not clear what this flag does, we can only assume. If I am correct we need to clarify these things
/checkoutor do I still need to specify full url?/at the end of it, do I need to specify it in handler?http://host.docker.internal:3000as default value in my handler input, perhaps it should be changed to actual flag value?