Deploying t3 on netlify?
I read the documentation regarding netlify deployment, but it seems there might be something missing, because just seting up netlify as in the docs doesn't work. Wont I need to somehow create netlify serverless functions that run the trpc procedures?
Solution:Jump to solution
ok seems to be a netlify issue, as even the repo from the docs doesn't work straigt out of the box and there is some reference error when accessing the server function.
Instead of wasting more time with it I decided to use vercel instead. 🤷♂️...
2 Replies
apparently after changing the api.ts file to include a URL env parameter it works almost:
problem now is that netlify seems to use some common js export/require syntax when the package is setup to use esm syntax only.. not sure how to fix this though
Solution
ok seems to be a netlify issue, as even the repo from the docs doesn't work straigt out of the box and there is some reference error when accessing the server function.
Instead of wasting more time with it I decided to use vercel instead. 🤷♂️