Unexpected error with Cloudflare Pages #21
-
I was curious about Cloudflare Pages and Remix, and I was able to put together a quick demo for testing purposes. I also implemented remix-auth with the form strategy, and everything seems to work fine locally. However, once deployed, upon authentication my Pages function crashes with the following error:
I'm not sure why is that, and why only in production. My form strategy verification function is just a dummy one. Basically, I'm not doing any meaningful work, I'm just returning the same username and password I get from user input.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So, I finally had a bit more time to dig into this, and all the shame is on me... I just forgot to rename my cookie secret environment variable in production to match the code. I guess I could have caught that earlier if I really paid attention at the error message. So Remix/Auth/Form strategy all works fine with Pages, although only up to v1.7.6. Apparently there are other issues leading to 500 range errors with Remix v1.8.0, which I'm going to debug next. But that's a different story... |
Beta Was this translation helpful? Give feedback.
So, I finally had a bit more time to dig into this, and all the shame is on me... I just forgot to rename my cookie secret environment variable in production to match the code. I guess I could have caught that earlier if I really paid attention at the error message. So Remix/Auth/Form strategy all works fine with Pages, although only up to v1.7.6. Apparently there are other issues leading to 500 range errors with Remix v1.8.0, which I'm going to debug next. But that's a different story...