Skip to content
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

fix(nextjs): Ensure imports are valid relative paths #8799

Merged
merged 1 commit into from
Aug 11, 2023

Commits on Aug 11, 2023

  1. fix(nextjs): Ensure imports are valid relative paths

    Fixes #8798
    
    In our logic that injects the Sentry config files to be executed, `path.relative()` may return something like `sentry.server.config.js` which is not allowed. Imports from the current directory need to start with './'. This is why we prepend the path with './', which should always again be a valid relative path.
    lforst committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    ebdde9c View commit details
    Browse the repository at this point in the history