If you’re wanting all the greatness of Next.js without having to deploy on the Vercel platform then look no further, use a custom server with Fastify! 3 main reasons why this is worth it:
Use the backend systems you know - ie Fastify - no having to learn how serverless works or how Next.js handles it’s backend API requests in a specific way
Keep full access to realtime features - server side events, websockets, socket.io, etc!
Don’t get tied to a separate platform when you really want to use Next.js for your next project. Using a Fastify custom server you can containerize your app and be on your way!
Github Repo with working example:
https://github.com/wolfejw86/blog-exa…
Subscribe: https://www.youtube.com/c/JayWolfe/featured
#react #typescript #fastify