-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
dev(rspack): Add SENTRY_DEVSERVER_NGROK to dev server "allowed hosts"
#107801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,6 +75,7 @@ const SENTRY_BACKEND_PORT = env.SENTRY_BACKEND_PORT; | |
| const SENTRY_WEBPACK_PROXY_HOST = env.SENTRY_WEBPACK_PROXY_HOST; | ||
| const SENTRY_WEBPACK_PROXY_PORT = env.SENTRY_WEBPACK_PROXY_PORT; | ||
| const SENTRY_RELEASE_VERSION = env.SENTRY_RELEASE_VERSION; | ||
| const SENTRY_DEVSERVER_NGROK = env.SENTRY_DEVSERVER_NGROK; | ||
|
|
||
| // Used by sentry devserver runner to force using webpack-dev-server | ||
| const FORCE_WEBPACK_DEV_SERVER = !!env.FORCE_WEBPACK_DEV_SERVER; | ||
|
|
@@ -307,8 +308,10 @@ const appConfig: Configuration = { | |
| test: /\.(js|jsx|ts|tsx)$/, | ||
| // Avoids recompiling core-js based on usage imports | ||
| exclude: /node_modules[\\/]core-js/, | ||
| loader: 'builtin:swc-loader', | ||
| options: swcReactLoaderConfig, | ||
| use: [ | ||
| {loader: 'builtin:swc-loader', options: swcReactLoaderConfig}, | ||
| // {loader: 'babel-loader'}, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commented out babel-loader appears accidentally committedLow Severity The PR description states this change is only about adding |
||
| ], | ||
| }, | ||
| { | ||
| test: /\.mdx?$/, | ||
|
|
@@ -645,6 +648,9 @@ if ( | |
| // SEO: ngrok, hot reload, SENTRY_UI_HOT_RELOAD. Uncomment this to allow hot-reloading when using ngrok. This is disabled by default | ||
| // since ngrok urls are public and can be accessed by anyone. | ||
| // '.ngrok.io', | ||
|
|
||
| // Needed if you want to use ngrok w/ backend | ||
| ...(SENTRY_DEVSERVER_NGROK ? [`.${SENTRY_DEVSERVER_NGROK}`] : []), | ||
| ], | ||
| static: { | ||
| directory: './src/sentry/static/sentry', | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prob should throw this in CODEOWNERS if we want to keep the owners-js-build team