Express.JS Deploy on CF Pages

Hi, Is it possible to deploy a Express.JS REST-API on CloudFlare Pages? I would like to handle my Backend Requests there instead of Next JS for example.
2 Replies
z0rrn
z0rrn8mo ago
Express directly isn't possible because it relies heavily on Node.JS API which aren't implemented in Workers but there are alternatives (like https://www.npmjs.com/package/cloudworker-router or https://hono.dev) which should work perfectly.
npm
cloudworker-router
A router for cloudflare workers. Latest version: 4.1.5, last published: 8 months ago. Start using cloudworker-router in your project by running npm i cloudworker-router. There are 4 other projects in the npm registry using cloudworker-router.
Gabriel
GabrielOP8mo ago
Will take a Look at it thanks For now I figured I can also use NextJS SSR
Want results from more Discord servers?
Add your server