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(solidstart): Use nitro module for build hooks to preserve preset hooks
Previously, to move the instrumentation file to the build output we added a
`rollup:before` hook via nitro's `server.hooks`. This however overrides any
nitro preset-defined hooks.
Any preset that defines such a hook, has their hook not run. Notably, the
`aws-preset` sets up `rollup:before` to switch the entry files when using aws
streaming.
The fix is to move our hook logic into our own nitro module, which then runs
additvely on top of all the other hooks that have been defined by other presets.
Closes: #20857
it('adds a nitro hook to add the instrumentation file as top level import to the server entry file when configured in autoInjectServerSentry',async()=>{
64
+
it('does not override user-defined hooks in server.hooks',()=>{
0 commit comments