My api does not go to the Deploying to Cloudflare's global network process
Hello everyone,
I am new to this application Deploy, it happens that I am trying to make my API in Nodejs and Express (it is the way I learned) to be in the cloud in the pages service, when trying in various ways it seems that the API is It runs, but it stays in listening and never reaches the deploy. I imagine that I am doing something wrong or in the wrong sector, is there someone who can guide me with this?
Thank you for your time reading and/or helping.
Sorry my bad English!
![No description](https://cdn.answeroverflow.com/1247296672401457314/image.png)
2 Replies
?pages-webserver
Cloudflare Pages is for static content (HTML, CSS, JS, images and other such files). It will not run a webserver such as Express, Koa or the likes. If you're using those to serve static content then you can just remove that part and use Pages! If you're doing more dynamic content you can use Functions (https://developers.cloudflare.com/pages/platform/functions). It will run code on request (so still not a webserver in the conventional sense). This would allow for more dynamic content though especially with KV (Key Value storage) and Durable Objects (transactional data storage). Functions are natively integrated with Pages so are super easy to get up and running along your website. Otherwise, a good old VPS or dedicated server from one of the many hosts out there is for you.