How do you debug a failed build?

The docs indicate there is a build log but there simply isn't one in the UI
No description
No description
15 Replies
Walshy
Walshy7mo ago
You did a direct upload so there is no CI build what's the deployment ID?
someguy
someguy7mo ago
@Walshy | Deploying 3b391436ea162bcb7052d445e3908d7d I see no error messages in my console during upload
Walshy
Walshy7mo ago
that looks like an account id ?pages-deployment-id
Flare
Flare7mo ago
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.
someguy
someguy7mo ago
61ea409f-a7d2-4a90-903b-3b9730e56f9a https://dash.cloudflare.com/3b391436ea162bcb7052d445e3908d7d/pages/view/baybridgestatus/61ea409f-a7d2-4a90-903b-3b9730e56f9a/files let me know if this helps Also side note is there a way to connect D1 to a local next-on-pages env? I saw a lot of dev week stuff but it doesn't seem to be an option yet (I want to use my prod D1 DB)
Walshy
Walshy7mo ago
I've raised this to support, they will check it shortly You can't use prod resources locally no
someguy
someguy7mo ago
It's really a shame, it makes local dev so hard with this
Walshy
Walshy7mo ago
Personally I'd hate having any prod resources hit locally haha, so easy to break stuff there. You can obviously make a seperate dev one but at that point you may as well do local that's my 2c anyway I was a big pusher for local-first in Wrangler v3
someguy
someguy7mo ago
How do I connect to a dev one? any would be nice TBH So I guess there is no way to fix this for now
Walshy
Walshy7mo ago
Alright the failure for this was
compatibility_flags cannot be specified without a compatibility_date
someguy
someguy7mo ago
I have both set, or does compatibility_date need to be set on cmd? I use: "pages:deploy": "npm run pages:build && wrangler pages deploy .vercel/output/static" oh I see it's not in my wrangler file trying it worked! Errors should really be more clear, would help a lot thank you!!
Walshy
Walshy7mo ago
Yeah there's an open bug for it, sorry for the issue!
someguy
someguy7mo ago
so with wrangler file I now can ignore the UI aspect?
Walshy
Walshy7mo ago
yep
someguy
someguy7mo ago
cool awesome thanks for the help! didn't expect it to be solved so fast
Want results from more Discord servers?
Add your server