Title: Sentry creates rewriteFramesHelper.js during Nextjs "standalone" static generation · Issue #4684 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry creates rewriteFramesHelper.js during Nextjs "standalone" static generation · Issue #4684 · getsentry/sentry-javascript
X Title: Sentry creates rewriteFramesHelper.js during Nextjs "standalone" static generation · Issue #4684 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4684
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry creates rewriteFramesHelper.js during Nextjs \"standalone\" static generation","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Which package are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n6.18.1\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\nWe are switching to generating a standalone bundle for our Nextjs project according to: https://nextjs.org/docs/advanced-features/output-file-tracing\r\n\r\nThis issue is possible to reproduce when bundling NextJS using:\r\n\r\n`module.exports = {\r\n experimental: {\r\n outputStandalone: true,\r\n },\r\n}`\r\n\r\nnext.config.js consumes the config using withSentryConfig as described in the docs:\r\n\r\n`module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions);`\r\n\r\nWe first detected the issue when our Azure pipeline failed at:\r\n\r\n`> Build error occurred\r\n[Error: ENOENT: no such file or directory, mkdir 'D:\\a\\1\\s\\.next\\standalone\\.next\\server\\pages\\C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\sentry-Yr02pe'] {\r\n errno: -4058,\r\n code: 'ENOENT',\r\n syscall: 'mkdir',\r\n path: 'D:\\\\a\\\\1\\\\s\\\\.next\\\\standalone\\\\.next\\\\server\\\\pages\\\\C:\\\\Users\\\\VSSADM~1\\\\AppData\\\\Local\\\\Temp\\\\sentry-Yr02pe'\r\n}\r\n##[error]Cmd.exe exited with code '1'.\r\n`\r\nSentry is for some reason trying to generate a folder for the file rewritesFramesHelper.js during nextjs \"Generating static pages\".\r\n\r\nWhen running locally, this directory is created in the root NextJS folder.\r\n\r\n\r\n\r\n\n\n### Expected Result\n\nExpect sentry not to spam the project folder with directory sentry-xxxxx.\n\n### Actual Result\n\n\r\n\r\nAs you can see, Sentry is creating a folder Users...../sentry-xxxxxx containing rewritesFramesHelper.js.","author":{"url":"https://github.com/calix","@type":"Person","name":"calix"},"datePublished":"2022-03-04T12:50:51Z","url":"https://github.com/getsentry/sentry-javascript/issues/4684"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:35334027-9eff-a200-1d55-8258a1126f3b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96D4:2A756:166A94:1E3D93:6B042FBB |
| html-safe-nonce | 58ff30f422f77678f22504abaa29fdadb0eded41cbf967c20895bef739a1e228 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkQ0OjJBNzU2OjE2NkE5NDoxRTNEOTM6NkIwNDJGQkIiLCJ2aXNpdG9yX2lkIjoiMzUzMTEwMjM2OTE1NDg3MTIyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8efd19486d1f73289c5bec5ac960ea914a526b67564b102d34567e7d09b8fce6 |
| hovercard-subject-tag | issue:1159613908 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/4684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/99f20d60befb82379e9a36e7e28067b7c308b5f13bf9045a1297f431be9d2502/getsentry/sentry-javascript/issues/4684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/99f20d60befb82379e9a36e7e28067b7c308b5f13bf9045a1297f431be9d2502/getsentry/sentry-javascript/issues/4684 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | calix |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width