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
I have a app that's running on NextJS using NX as a monorepo tool. The consequence of this is that my .next directory is in a different directory from the project root.
next-safe-middleware seems to inject a directory called ~csp into the .next/static directory. This is wrong for my use-case and is the most likely reason for next-safe-middleware not working in my app.
Is there any way to override the default .next directory location?
The text was updated successfully, but these errors were encountered:
I ended up ignoring this particular part of the issue, implementing the rest of the recommended steps. I think adding gsspWithNonce() to all getServerSideProps calls that require the CSP stuff will work.
I have a app that's running on NextJS using NX as a monorepo tool. The consequence of this is that my .next directory is in a different directory from the project root.
next-safe-middleware seems to inject a directory called ~csp into the .next/static directory. This is wrong for my use-case and is the most likely reason for next-safe-middleware not working in my app.
Is there any way to override the default .next directory location?
The text was updated successfully, but these errors were encountered: