Failing build
Hello, I am having a problem with building my app. After all the necessary processes are completed and the server starts, I wait for the build to finish. However, after approximately 30 minutes, it fails with the error message “Failed: an internal error occurred,” which is very vague.
![No description](https://cdn.answeroverflow.com/1139866956359540807/buildfail.jpg)
11 Replies
?pages-deployment-id
The Pages deployment ID is a unique build identifier.
It's the UUID in the browser bar (for example, a URL would be
dash.cloudflare.com/ACCOUNT_ID/pages/view/PROJECT/DEPLOYMENT_ID
where the deployment ID looks something like a398d794-7322-4c97-96d9-40b5140a8d9b).
This ID can help troubleshoot some issues with Pages builds so if you have a failing build make sure you grab that ID for the Pages team to use.Got one of these? I can look up the error
yes sure, 37158cc9-eada-4324-9bfc-06fb3025dd65
this is my newest one
Hey there! Sorry for the issues. Accessing deployment logs requires access the community doesn’t have unfortunately. Let me ping a few people who should be able to look this up and get back to you. cc @natalier_ @nevika @Vero 🐙
Raising
Raised
Hi, in that deployment it looks like you’re trying to serve the application instead of build it
And it looks like you started a web server and it timed out
sorry but could you explain this in simpler terms (my english is not so good)
?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.
ok, so how can i run a fullstack web app on cloudflare (fronend and backend)
with Functions: https://developers.cloudflare.com/pages/platform/functions
Functions · Cloudflare Pages docs
Pages Functions allows you to build full-stack applications by executing code on the Cloudflare network with Cloudflare Workers. With Functions, you …