1. 23 Nov, 2022 18 commits
  2. 22 Nov, 2022 17 commits
  3. 21 Nov, 2022 5 commits
    • Hannes Bornö's avatar
      Remove app routes from _devPagesManifest (#43188) · d8d9b2c9
      Hannes Bornö authored
      Currently in dev the `_devPagesManifest` includes the `/app` routes as
      well. However, In production, the `_buildManifest.js` does not include
      the `/app` routes. This causes the `/pages` router to behave differently
      in the two environments.
      
      This change excludes the `/app` routes from `_devPagesManifest` to make
      it work the same in dev/prod.
      
      Fixes #42513
      Fixes #42532
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## 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.
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
      - [ ] The "examples guidelines" are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      d8d9b2c9
    • Jiachi Liu's avatar
      Fix middleware not executed when pages directory is empty (#43205) · ee969ea8
      Jiachi Liu authored
      Fixes #41995
      
      Closes #43144
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      Co-authored-by: 's avatarBruno Nascimento <bruno.hn@icloud.com>
      ee969ea8
    • JJ Kasper's avatar
      Update tests config (#43204) · 5d39daaf
      JJ Kasper authored
      Testing if this reduces flakiness we've been seeing
      5d39daaf
    • Jiachi Liu's avatar
      Alias esm next document to avoid mismatch react context (#43192) · 86903952
      Jiachi Liu authored
      <!--
      Thanks for opening a PR! Your contribution is much appreciated.
      To make sure your PR is handled as smoothly as possible we request that
      you follow the checklist sections below.
      Choose the right checklist for the change that you're making:
      -->
      
      When using custom document and importing from `next/document`,
      `HtmlContext` instance will mismatch due to CJS version of
      `next/document` is consumed. Gotta alias it to the ESM version for edge
      runtime
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      86903952
    • Jiachi Liu's avatar
      Avoid bundling appDir rendering into pages edge SSR bundle (#43184) · 2763f608
      Jiachi Liu authored
      Do not directly import app-render into base-server since base-server is
      shared module for both nodejs SSR and edge SSR.
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
      2763f608