rain
12/13/2022, 2:49 PMrain
12/13/2022, 2:50 PMJustinNoel
12/13/2022, 4:17 PMDatSparrow
12/13/2022, 4:58 PMdevon
12/13/2022, 11:45 PMzszszsz
12/14/2022, 12:09 AMJames
12/14/2022, 12:12 AMnode_compat = true
to your wrangler.toml
. For a while, this worked in dev for Pages and not prod, and now it doesn't work in either. That's a pretty crummy DX and I think the Pages team is very aware of that.
There's work happening for Pages config where hopefully this kind of thing can happen, but I don't think there's any real ETA on that unfortunately. So ultimately, you're left to build a _worker.js
yourself if you need to do anything complex 😦botato
12/14/2022, 12:16 AM_worker
file?James
12/14/2022, 12:17 AMJames
12/14/2022, 12:18 AMbotato
12/14/2022, 12:18 AMbotato
12/14/2022, 12:18 AMzszszsz
12/14/2022, 12:57 AMJames
12/14/2022, 12:57 AMUnsmart | Tech debt
12/14/2022, 12:58 AMUnsmart | Tech debt
12/14/2022, 12:58 AMzszszsz
12/14/2022, 12:59 AMJames
12/14/2022, 12:59 AMdevon
12/14/2022, 1:44 AMdevon
12/14/2022, 1:45 AMcharles.morrow
12/14/2022, 2:43 PMDatSparrow
12/14/2022, 2:48 PMwrangler pages deployment tail --environment=preview
and it connects to the deployment correctly.
However, the tail is not showing any output when going to the page that triggers a 500 error, locally this would normally output errors via console.log - so I know that something is being logged but for some reason the pages tail isn't picking it up.
Any ideas?
Update:
What makes this even stranger is that sometimes it works but others times it doesn't. I changed my code locally that I know works on cf pages to include a console log to see if it outputs in tail, but now the error page also logs in tail. But sometimes it doesn't.
Seems if I tail the deployment before any requests are made to it, the logs show, but if I tail the deployment after even one request is made to it, the logs never show, even if I wait for a bit before tailing again.
What is going on here?dinislam
12/15/2022, 7:24 AMHardAtWork
12/15/2022, 7:28 AMdinislam
12/15/2022, 7:29 AMHardAtWork
12/15/2022, 7:30 AMdinislam
12/15/2022, 7:31 AMHardAtWork
12/15/2022, 7:40 AMzszszsz
12/15/2022, 10:09 AMzszszsz
12/15/2022, 10:09 AM