1. 22 Jul, 2021 12 commits
  2. 21 Jul, 2021 5 commits
    • JJ Kasper's avatar
      v11.0.2-canary.19 · 5dc5a3fb
      JJ Kasper authored
      5dc5a3fb
    • Edward Brey's avatar
      Indicate attaching debugger (vs launching) (#27377) · 4c86976b
      Edward Brey authored
      The prior configuration name indicating that it launched the application. Really, it just attaches to an already running application, which the new name indicates.
      4c86976b
    • Stefan Becker's avatar
      Add configuration for ISR Memory Cache Size (#21535) (#27337) · dbfce34e
      Stefan Becker authored
      This allows the user to adjust the LRU cache size according to the
      application need:
      
      - optimize the cache size based on average page HTML & JSON size
      - disable the memory cache by setting the size to 0
      
      The hard-coded default of 50MB has been moved from the code to the
      default configuration object.
      
      Fixes #21535
      See also #27325
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [X] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [X] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [X] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes
      dbfce34e
    • Javi Velasco's avatar
      Refactor i18n checks on request handling (#27328) · e65c56e7
      Javi Velasco authored
      Currently there is a lot of mutation in the Next.js Server and the checks for Locale are directly coded in the general request handler. Ideally, we should have a function where we just pass the request input (url + headers + config) and generate a bunch of metadata that analyzes it generating all metadata we might require for both the URL and i18n + basePath information.
      
      This PR brings:
      - A new parsing function `parseUrl` that joins parsing an absolute/relative URL into a data structure compatible with the Node parsing output but missing redundant properties.
      - A wrapper `parseNextURL` that extends `parseUrl` analyzing `i18n` and `basePath` based on the provided configuration, url and headers. This function is pure and stateless so it can be used outside of the Next.js context.
      - Types improvements and reuse.
      - Refactors `next-server.ts` request handling using the above mentioned functions so that the code there just apply effects to the `req` object and the `parsedUrl.query` leaving the code much more straightforward.
      - Refactors `getRouteRegex` decomposing in two different functions where `getParametrizedRoute` can be used to retrieve the serializable data that is used to generate the Regex.
      e65c56e7
    • Andres Barbaro's avatar
      bdcb8b0a
  3. 20 Jul, 2021 20 commits
  4. 19 Jul, 2021 3 commits