You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is that @cloudflare/next-on-pages generates a Pages project in advanced mode, this mode is incompatible with the functions/ directory implementation and the latter gets ignored, as you can see in the docs:
So it is expected for your implementation not to work, you'll need to change it so that you integrate sentry directly in your Next.js application.
I haven't used sentry before so unfortunately I cannot help you much in that regard, but the sentry docs seem to include clear instructions on how to do so 🙂
Also note that people have had a few issues with sentry (like #178 and #420), so I can't guarantee that it'll work for your specific use case (but I'll be here to help if I can 🙂)
next-on-pages environment related information
System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
CPU: (16) x64 AMD Ryzen 7 2700X Eight-Core Processor
Memory: 32 GB
Shell: C:\Program Files\Git\usr\bin\bash.exe
Binaries:
Node: 20.5.0
Bun: N/A
pnpm: N/A
Yarn: 1.22.19
npm: 9.8.0
Package Manager Used: yarn (classic)
Relevant Packages:
@cloudflare/next-on-pages: 1.5.0
vercel: N/A
next: N/A
Description
Sentry does not work when published on Cloudflare Pages.
functions/_middleware.ts
Reproduction
Pages Deployment Method
Direct Upload (
wrangler pages publish
or the @cloudflare/pages-action GitHub Action)Pages Deployment ID
71596039
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: