1. 01 Feb, 2022 3 commits
  2. 31 Jan, 2022 6 commits
    • lxy-yz's avatar
      fix typo (#33840) · b00270b1
      lxy-yz authored
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `yarn lint`
      b00270b1
    • Aman Mittal's avatar
      Update Content-Security-Policy header usage explanation (#33833) · ad79c04d
      Aman Mittal authored
      This PR improves the Content-Security-Policy header usage explanation in the `next.config.js` file.
      
      
      
      ## Bug
      
      - [x] Related issues linked using fixes #33598 
      - [ ] Integration tests added
      - [ ] Errors have 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
      - [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
      
      - [x] Make sure the linting passes by running `yarn lint`
      ad79c04d
    • redbar0n's avatar
      Doc: fix broken link to api routes doc (#33836) · 4f5975ff
      redbar0n authored
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      4f5975ff
    • Tim Neutkens's avatar
      Enable jest hoist transform when using next/jest (#33731) · 3bac02e0
      Tim Neutkens authored
      Fixes #32539
      
      Implements what was shared at https://github.com/vercel/next.js/issues/32539#issuecomment-1023139083.
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      3bac02e0
    • Jiachi Liu's avatar
      Generate functions manifest (#33770) · 5b31c18e
      Jiachi Liu authored
      ## Feature
      
      Reuse most of the part from manifest plugin to generate similar assets
      
      Resolves #33667
      
      - [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`
      - [x] Integration tests added
      5b31c18e
    • Delba de Oliveira's avatar
      [Docs] Testing docs: Comment out optional config that points to a file (#33827) · 030666b5
      Delba de Oliveira authored
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `yarn lint`
      
      This prevents users who copy and paste the options without creating the associated file from experiencing an error. The option is explained in the Jest Docs and in the `Optional: Extend Jest with custom matchers` section.
      030666b5
  3. 30 Jan, 2022 2 commits
    • Tuan Nguyen's avatar
      Upgrade to @stitches/react 1.2.6 (#33817) · a410155b
      Tuan Nguyen authored
      a410155b
    • Emrin's avatar
      [docs] Mention SWC in TypeScript documentation. (#33801) · b72eeae2
      Emrin authored
      Update outdated TS/TSX compiler information in the documentation.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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
      - [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 by running `yarn lint`
      Co-authored-by: 's avatarLee Robinson <9113740+leerob@users.noreply.github.com>
      b72eeae2
  4. 29 Jan, 2022 1 commit
    • Rich Haines's avatar
      Fixed duplicate data fetching overview page + links (#33774) · 13836120
      Rich Haines authored
      This PR removes the duplicate overview link for data fetching, and fixes the corresponding links
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      Co-authored-by: 's avatarLee Robinson <9113740+leerob@users.noreply.github.com>
      Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
      13836120
  5. 28 Jan, 2022 5 commits
  6. 27 Jan, 2022 21 commits
    • JJ Kasper's avatar
      Move custom server note from middleware doc (#33744) · 5ebc6d06
      JJ Kasper authored
      This moves the note about custom server handling for middleware to the custom server document. 
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `yarn lint`
      
      x-ref: https://github.com/vercel/next.js/pull/33535#discussion_r790110427
      5ebc6d06
    • JJ Kasper's avatar
      v12.0.10-canary.0 · b314c988
      JJ Kasper authored
      b314c988
    • JJ Kasper's avatar
    • JJ Kasper's avatar
      Ensure all CSS files are included for experimental critical CSS (#33752) · 7ec49be7
      JJ Kasper authored
      * Ensure all CSS files are included for experimental critical CSS
      
      * remove extra import
      7ec49be7
    • Nelson Frank's avatar
      Correct misspelling in testing documentation #33754 (#33755) · c2b6d235
      Nelson Frank authored
      ```diff
      - Styleheets and images ....
      
      + Styleheets and images ....
      ```
      closes #33754
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      c2b6d235
    • Gal Schlezinger's avatar
      Allow to delete URL search params in middleware rewrites (#33725) · 7b2ea487
      Gal Schlezinger authored
      This allows to have a more streamlined API for rewrites.
      Since middlewares are code and not static configurations, we can allow people to
      delete query params and not just overwrite them.
      
      **⚠️ Warning ⚠️** this is a breaking change in query parameter behavior with middlewares, but the API will make more sense now. Compare the following:
      
      ```diff
        import {NextResponse} from 'next/server'
        export default function middleware({ nextUrl }) {
      -   nextUrl.searchParams.set('ignored-query-param', '');
      +   nextUrl.searchParams.delete('ignored-query-param'); // 🎉
          return NextResponse.rewrite(nextUrl);
        }
      ```
      
      Since this is breaking change, we're adding a warning every time we find a query param that is missing, and eventually--the warning will be deleted.
      I don't think we need to worry about older versions of Next.js as the current behavior is misleading: merging query parameters make sense for static rewrites, but not for middlewares where you have access to all the query parameters and can manipulate them freely.
      
      Related:
      * This is the opposite of #33454
      * This supersedes #33574
      7b2ea487
    • Steven's avatar
      Add `stale-while-revalidate` pattern to Image Optimization API (#33735) · 16b5bfa7
      Steven authored
      - Resolves #27208 
      16b5bfa7
    • Jiachi Liu's avatar
      fix rsc test suite runner (#33745) · eea3adc5
      Jiachi Liu authored
      eea3adc5
    • Irene Oppo's avatar
      Added next.config.js with datocms-assets domain in allow list (#33647) · 5f96a0b1
      Irene Oppo authored
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [v] Make sure the linting passes by running `yarn lint`
      Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
      5f96a0b1
    • Pieter Bogaerts's avatar
      fix: fixes #33314 move is-plain-object for es5 compilation (#33690) · 662fa636
      Pieter Bogaerts authored
      ## Bug
      
      - [ ] Related issues linked using `fixes #33314` #33314
      - [ ] Moved the `is-plain-object` file to the shared directory since it's emitted to the client and thus needs to be transpiled.
      
      This is just my 2nd PR so if I'm missing something please let me know.
      662fa636
    • Kryštof Krátký's avatar
      Fix `with-docker` example dockerfile (#33695) · 33784f13
      Kryštof Krátký authored
      
      
      Fixed `dockerfile` in `with-docker`  example
      
      ## Bug
      
      - error when executing `docker build -t nextjs-docker .` - `yarn.lock` file is missing
      
       ## Documentation / Examples
      
      - edited to not fail when `package-lock.json` or `yarn.lock` are not found
      - example: use `with-docker` example
      
      - [x] Make sure the linting passes by running yarn lint
      Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
      33784f13
    • Shu Ding's avatar
      Improve tests for streaming and server components (#33740) · 66af3cee
      Shu Ding authored
      Reorganizes the existing tests as they're getting longer.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      66af3cee
    • Pepijn Senders's avatar
      chore: deprecate process.browser (#32862) · c8a0aac2
      Pepijn Senders authored
      This value has been deprecated in favor of `typeof window !== 'undefined'` a long time ago ([ref](https://github.com/vercel/next.js/pull/7651)). We should also deprecate the value in the global types as it might give the wrong assumption that this value should still be used.
      c8a0aac2
    • Shu Ding's avatar
      Properly support custom 500 page in the web server (#33729) · 7b524c1b
      Shu Ding authored
      In the web runtime, currently we use `absolute500Path || absoluteErrorPath` to act like `/_error`. This PR fixes the behavior to use the `/pages/500.js` for 500 errors and `/pages/_error.js` for 500 fallback and other errors.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      7b524c1b
    • Jiachi Liu's avatar
      Use swc parse for flight server and client loaders (#33713) · 3bda6e66
      Jiachi Liu authored
      * Add `parse` method for next-swc
      * Use shared next-swc to parse rsc components AST
      * Remove the invalid case of parsing `ExportAllDecalaration` (we didn't support it well before, so I deleted. need to support later)
      Co-authored-by: 's avatarDonny/강동윤 <29931815+kdy1@users.noreply.github.com>
      Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
      3bda6e66
    • Rich Haines's avatar
      Changed data fetching file name to overview to fix meta data title (#33232) · 8a1c947d
      Rich Haines authored
      * Changed data fetching file name to overview to fix meta data title
      
      * Update docs/api-reference/data-fetching/get-server-side-props.md
      Co-authored-by: 's avatarSteven <steven@ceriously.com>
      
      * Update manifest and check
      Co-authored-by: 's avatarSteven <steven@ceriously.com>
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      8a1c947d
    • Balázs Orbán's avatar
      fix: allow certain variable names in development (#33638) · 7e95e300
      Balázs Orbán authored
      Fixes #24570
      
      A few variable names (listed https://github.com/vercel/next.js/issues/24570#issuecomment-828721019) were causing problems when using `next dev`.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      7e95e300
    • Balázs Orbán's avatar
      feat: make `compress` configurable in standalone mode (#33717) · 0d642f12
      Balázs Orbán authored
      Fixes #33696
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      0d642f12
    • Keen Yee Liau's avatar
      fix: image optimizer hangs when invalid image is requested (#33719) · c551a329
      Keen Yee Liau authored
      When an invalid image is requested, the 'finish' event is never triggered,
      which ultimately leads to a 504 Gateway Timeout error.
      
      This is fixed by invoking the 'callback' in `_write()`.
      
      fix https://github.com/vercel/next.js/issues/33441
      
      
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      c551a329
    • Balázs Orbán's avatar
      fix syntax error in `lock.yml` · 311f66ea
      Balázs Orbán authored
      311f66ea
    • Balázs Orbán's avatar
      fix: use github action instead of bot (#33718) · 4916aa1e
      Balázs Orbán authored
      * fix: use github action instead of bot
      
      * add personal access tokens to avoid rate limiting
      
      * Update .github/workflows/lock.yml
      Co-authored-by: 's avatarSteven <steven@ceriously.com>
      
      * add cron comments
      Co-authored-by: 's avatarSteven <steven@ceriously.com>
      4916aa1e
  7. 26 Jan, 2022 2 commits
    • Balázs Orbán's avatar
      run stale 20 minutes earlier · eaf680d6
      Balázs Orbán authored
      So https://nextjs-issue-tracker.vercel.app picks up newly closed issues
      eaf680d6
    • Vienio99's avatar
      Update Time to First Byte (TTFB) link (#33715) · a0275f27
      Vienio99 authored
      The initial link was showing 404 not found
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      a0275f27