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

Don't polyfill process on Middleware #36413

Closed

Commits on Apr 25, 2022

  1. Don't polyfill process on Middleware

    since it is running on another runtime, the polyfills work like their browser counterparts,
    which make no sense in a server-side environment and only get in the way.
    
    This commit introduces a warning when using anything from `process` other than `process.env`,
    and returning `undefined` so users won't use the polyfilled `process`
    
    for some reason RSC is using process.cwd(), so we allow to override the
      `process` entries.
    Schniz committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    c1d8e69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    faab183 View commit details
    Browse the repository at this point in the history