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
fix(nuxt): Delete no longer needed Nitro 'close' hook (#15790)
Due to PR #15710 the
Sentry server config is only processed inside the Nitro-part of Nuxt and
the server config file is emitted through the Rollup plugin.
It is not needed anymore to copy-paste the file manually (this has been
the case before as the file was added to the `.nuxt` folder - as it was
processed by Nuxt, not Nitro-only).
This fixes the "no such file" error [posted in this
comment](#13330 (comment)).
closes#13330
* Adds the `sentry.server.config.ts` file as `sentry.server.config.mjs` to the `.output` directory to be able to reference this file in the node --import option.
23
23
*
24
-
* 1. Adding the file as a rollup import, so it is included in the build (automatically transpiles the file).
25
-
* 2. Copying the file to the `.output` directory after the build process is finished.
24
+
* By adding a Rollup plugin to the Nitro Rollup options, the Sentry server config is transpiled and emitted to the server build.
26
25
*/
27
26
exportfunctionaddServerConfigToBuild(
28
27
moduleOptions: SentryNuxtModuleOptions,
@@ -39,41 +38,6 @@ export function addServerConfigToBuild(
0 commit comments