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
{{ message }}
Repository navigation
Find approach that doesn't write to disk in Next.js SDK proxyLoader #5944
Activity
AbhiPrasad commentedon Oct 13, 2022
@eggplants Could you provide your Node/Webpack versions as well here?
I wonder why
/app/src/pagesis readonly, is this something you configured with docker?Currently there is no other workaround for this other than disabling
autoInstrumentServerFunctions, but we are going to take a look!Perhaps we need to investigate using a virtual plugin, or using the
/tmp/directory here.eggplants commentedon Oct 13, 2022
Yes. Here is a part of my
docker-compose.yaml.eggplants commentedon Oct 13, 2022
To set
autoInstrumentServerFunctionstotruewhile keeping the volume read-only, is new option likedisableProxyLoaderneeded?AbhiPrasad commentedon Oct 13, 2022
autoInstrumentServerFunctionsuses the proxy loader, so if the proxy loader was not installed it would not do anything.eggplants commentedon Oct 13, 2022
So I have to either give up on making volume read-only or using
autoInstrumentServerFunctions, right?AbhiPrasad commentedon Oct 13, 2022
Yes for now, but we can look at improving this. PRs are also welcome if you have any ideas.
eggplants commentedon Oct 13, 2022
If we can get the rollup to do it without temporary files, this issue might solve the problem.
sentry-javascript/packages/nextjs/src/config/loaders/proxyLoader.ts
Lines 53 to 71 in 7e03836
[-]Disable `proxyLoader`[/-][+]Find approach that doesn't write to disk in Next.js SDK `proxyLoader`[/+]ref(nextjs): Use virtual rather than temporary file for proxy module (#…