Is there a way to host Pocketbase db to Vercel or any other free platforms? #3560
-
I'm using Pockethost to host my Pocketbase database, but I noticed that it has a slow response when handling frontend requests. So, are there any free, better alternatives like Vercel or other platforms to host Pocketbase? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Other free options that are commonly used are Hop.io or Fly.io. Side-note: If you use Vercel, then I suspect that you use also Next.js SSR or RSC. A lot of developers seem to jump straight to it, but my general recommendation would be, if you are not working on a website, to NOT use JS SSR/RSC and prefer client-side rendering (eg. SPA). If you use JS SSR/RSC you no longer have "just frontend". |
Beta Was this translation helpful? Give feedback.
-
Use Cloudflare tunnels, buy a rpi 0, install docker and plug it into a spare usb socket and call it a day. Easy $10 one-time payment and after 2 months pays itself off instead of using cloud resources ($5 a month "nanode" on akamai). |
Beta Was this translation helpful? Give feedback.
Other free options that are commonly used are Hop.io or Fly.io.
Side-note: If you use Vercel, then I suspect that you use also Next.js SSR or RSC. A lot of developers seem to jump straight to it, but my general recommendation would be, if you are not working on a website, to NOT use JS SSR/RSC and prefer client-side rendering (eg. SPA). If you use JS SSR/RSC you no longer have "just frontend".
If that's the case, the slow response times could be caused by the different locations of the servers because you are probably proxy-ing every client request from your node server to PocketBase (aka. browser->node->PocketBase). PocketBase comes with its own API rules to manage the access to your dat…