How do you debug a failed build?
The docs indicate there is a build log but there simply isn't one in the UI
15 Replies
You did a direct upload so there is no CI build
what's the deployment ID?
@Walshy | Deploying 3b391436ea162bcb7052d445e3908d7d
I see no error messages in my console during upload
that looks like an account id
?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.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)
I've raised this to support, they will check it shortly
You can't use prod resources locally no
It's really a shame, it makes local dev so hard with this
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
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
Alright the failure for this was
compatibility_flags cannot be specified without a compatibility_date
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!!
Yeah there's an open bug for it, sorry for the issue!
so with wrangler file I now can ignore the UI aspect?
yep
cool
awesome thanks for the help!
didn't expect it to be solved so fast