CF Pages + Remix source maps

I'm struggling to get my sourcemaps produced by Remix mapping up to the code run in CF Pages. My understanding is wrangler will effectively re-bundle the Remix output functions/[[path]].js , wrapping it up as a _worker.js file. Naturally this means sourcemaps won't align. I've therefore tried to bypass bundling by a) using Advanced Mode (outputting my own _worker.js with Remix) and b) deploy using the --no-bundle flag. However, I'm still seeing stack traces such as bundledWorker-0.5182044712814888.mjs)which implies to me that it's still being bundled by wrangler pages instead of being deployed as is. Has anybody got any advice here, as right now it's making it impossible to debug anything deployed to CF Pages 🤔
1 Reply
Rich
RichOP•14mo ago
Ok, turns out my build pipeline wasn't passing --no-bundle correctly. I've got it working so my worker sourcemaps actually make map up to the code being run 🙌
Want results from more Discord servers?
Add your server