how to use cloudflare context #39
Replies: 3 comments 3 replies
-
You can use context here too. No need for env variables to be on global process object. Maybe I’m missing something here. Can you point me to the specific code where you are facing problems? |
Beta Was this translation helpful? Give feedback.
-
its possible that I am just new to remix and don't understand some of the subtleties, could you provide an example of how I could say load the magic link secret from context rather than process |
Beta Was this translation helpful? Give feedback.
-
@andrew-r-thomas did you ever get your PR up? I'm running into the same issue as you. I got around it by creating the instance of my EmailLinkStrategy inside the getLoadContext function
|
Beta Was this translation helpful? Give feedback.
-
in order to use environment variables in cloudflare, you need access to a context variable. This is a standard part of loaders and actions, and is implemented in the FormStrategy strategy, but it is not for email links, is there a plan to add this in the future/does anyone know how to use cloudflare context with this strategy as is
Beta Was this translation helpful? Give feedback.
All reactions