sjc5 / hwy

Hwy is a fullstack web framework for driving a (p)react frontend with a Go backend. Includes end-to-end typesafety, file-based nested UI routing, and much more.
BSD 3-Clause "New" or "Revised" License
317 stars 3 forks source link

Form action error on Vercel deployment #8

Closed MystPi closed 12 months ago

MystPi commented 12 months ago

First off, this framework looks very promising, and I hope to use it in the future! I especially like how it supports deployment to Vercel, my usual host of choice.

To test out the framework I deployed the default app created by the CLI to Vercel. (https://hwy-test.vercel.app) Most of the deployment seems to be working great (and everything works locally), however, the login page's form action results in an error. image Logs from the Vercel dashboard: image

I chose these options when creating the project: Vercel (serverless), TypeScript, Tailwind CSS, and NProgress

MystPi commented 12 months ago

I just read this and setting the env var NODEJS_HELPERS to 0 did the trick! Maybe it should say something about that in the deployment section of the docs?

sjc5 commented 11 months ago

Good idea, @MystPi -- we should make it clearer in the docs for sure. I think the docs need an overhaul in general, especially on deployment. This should be in the README when you choose Vercel as a deployment target, but that isn't always very obvious.

Thanks for the issue and the recommendation!