1. 25 3月, 2021 2 次提交
    • J
      Run server client/server builds serially (#23371) · a6c0d76e
      JJ Kasper 提交于
      
      
      Previously we special cased serverless builds and ran the client/server builds serially to allow the server build to load manifests produced in the client. To help with memory usage and for consistency this updates server mode to build in the same way.  
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      a6c0d76e
    • J
      Add has route field (#22341) · 75c721c5
      JJ Kasper 提交于
      This adds support for a `has` field to `rewrites`, `redirects`, and `headers` to allow matching against `header`, `cookie`, and `query` values. Documentation and additional tests for the feature is also added in this PR. 
      
      Closes: https://github.com/vercel/next.js/issues/22345
      75c721c5
  2. 24 3月, 2021 1 次提交
    • H
      Add ESLint to Next.js (#22437) · e5ef60fe
      Houssein Djirdeh 提交于
      For #22228
      
      This PR:
      
      - Adds ESLint to toolchain
        - Included by default for builds (`next build`)
        - Can be enabled for development (`next dev`)
        - Custom formatter built for output
      - Adds appropriate tests
      - Adds two documentation pages
      e5ef60fe
  3. 21 3月, 2021 1 次提交
    • T
      add separate progress output for typechecking (#23226) · 8c72806a
      Tobias Koppers 提交于
      
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      
      Fixes #23240
      8c72806a
  4. 17 3月, 2021 1 次提交
    • S
      Upgrade jest-worker (#23077) · 1bf4cf3e
      Shu Ding 提交于
      This PR upgrades `jest-worker` and `jest-cli` to the latest pre-release version, also removed `jest-circus` which is included in Jest by default. `jest-worker@next` includes a fix for memory leak that we need (https://github.com/facebook/jest/pull/11187). 
      
      Fixes #22925. This will also improve the OOM issue for `next dev` #15855.
      1bf4cf3e
  5. 14 3月, 2021 1 次提交
  6. 12 3月, 2021 1 次提交
  7. 11 3月, 2021 1 次提交
    • D
      Telemetry-compatible tracing (#22713) · e27b7e99
      Dale Bustad 提交于
      A number of changes here.  I recommend viewing the diff with the <a href="?w=1">whitespace flag enabled</a>.
      
      - OpenTelemetry is replaced with a custom and lightweight tracing solution.
      - Three trace targets are currently supported: console, Zipkin, and NextJS.
      - Tracing is now governed by environment variables rather than `--require instrument.js`.
        + `TRACE_TARGET`: one of `CONSOLE`, `ZIPKIN`, or `TELEMETRY`; defaults to `TELEMETRY` if unset or invalid.
        + `TRACE_ID`: an 8-byte hex-encoded value used as the Zipkin trace ID; if not provided, this value will be randomly generated and passed down to subprocesses.
      
      Other sundry:
      
      - I'm missing something, probably a setup step, with the Zipkin target.  Traces are captured successfully, but you have to manually enter the Trace ID in order to view the trace - it doesn't show up in queries.
      - I'm generally unhappy with [this commit](https://github.com/vercel/next.js/pull/22713/commits/235cedcb3ead76b630b4c8aa695f904489da2831).  It is... untidy to provide a telemetry object via `setGlobal`, but I don't have a ready alternative.  Is `distDir` strictly required when creating a new Telemetry object?  I didn't dig too deep here.
      
      As noted, there are a lot of changes, so it'd be great if a reviewer could:
      
      - [ ] pull down the branch and try to break it
      - [ ] check the Zipkin traces and identify possible regressions in the functionality
      
      Closes #22570
      Fixes #22574
      e27b7e99
  8. 10 3月, 2021 1 次提交
  9. 09 3月, 2021 1 次提交
    • J
      Update /500 page exporting when _error has custom GIP (#22887) · d951b238
      JJ Kasper 提交于
      This updates to not automatically export `/500` from `_error` if a custom `getInitialProps` is used since logic may be used inside of this method that causes the export to fail. Users can still opt-in to the static `/500` by adding a `pages/500.js` file. 
      
      This also refactors checking `_app` for custom `getInitialProps` to outside of the static check loop to prevent a potential race condition where we could run this check multiple times un-necessarily.  
      
      Fixes: https://github.com/vercel/next.js/issues/22815
      d951b238
  10. 04 3月, 2021 1 次提交
  11. 27 2月, 2021 1 次提交
  12. 23 2月, 2021 1 次提交
    • J
      Add generating static 500 status page (#22139) · 51e0752f
      JJ Kasper 提交于
      This adds generating a static 500 status page when a `pages/500.js` file is added similar to how we handle generating static 404 pages when `pages/404.js` is present. This allows showing a customized error page when a 500 error occurs in an optimal way.  
      51e0752f
  13. 18 2月, 2021 2 次提交
  14. 11 2月, 2021 1 次提交
  15. 27 1月, 2021 1 次提交
  16. 26 1月, 2021 1 次提交
  17. 12 1月, 2021 1 次提交
  18. 10 1月, 2021 1 次提交
  19. 30 12月, 2020 1 次提交
  20. 29 12月, 2020 1 次提交
  21. 22 12月, 2020 3 次提交
  22. 17 12月, 2020 1 次提交
  23. 04 12月, 2020 1 次提交
  24. 19 11月, 2020 1 次提交
    • J
      Remove old modern mode experiment (#19275) · 30c2dfdc
      Joe Haddad 提交于
      This PR removes the modern mode experiment because:
      
      - It does not yield meaningful bundle size wins when compared to other initiatives we've taken
      - It's not compatible with webpack 5 (which we're upgrading to)
      - It's currently broken and causes most apps to malfunction
      - There's no champion currently owning the experiment
      
      We can re-introduce this in the future when we'd like to make it a default for all Next.js apps.
      
      Note: **Next.js still supports Differential Loading (`nomodule`) and does it by default.** This PR strictly removes the experimental modern _syntax_, and does not disable our existing modern/legacy polyfilling.
      
      ---
      
      Fixes #19200
      Fixes #18960
      Fixes #14707
      Fixes #14465
      30c2dfdc
  25. 14 11月, 2020 1 次提交
  26. 11 11月, 2020 1 次提交
  27. 06 11月, 2020 1 次提交
    • G
      ncc 0.25.0 upgrade and fixes (#18873) · 8221c180
      Guy Bedford 提交于
      This upgrades to ncc@0.25.0 and fixes the previous bugs including:
      
      * ncc not referenced correctly in build
      * Babel type errors
      * node-fetch, etag, chalk and raw-body dependencies not building with ncc - these have been "un-ncc'd" for now. As they are relatively small dependencies, this doesn't seem too much of an issue and we can follow up in the tracking ncc issue at https://github.com/vercel/ncc/issues/612.
      * `yarn dev` issues
      
      Took a lot of bisecting, but the overall diff isn't too bad here in the end.
      8221c180
  28. 03 11月, 2020 1 次提交
  29. 27 10月, 2020 6 次提交
  30. 21 10月, 2020 1 次提交
  31. 17 10月, 2020 1 次提交