1. 03 Nov, 2022 27 commits
    • JJ Kasper's avatar
      v13.0.2 · 2f9efb1a
      JJ Kasper authored
      2f9efb1a
    • JJ Kasper's avatar
      v13.0.2-canary.3 · 3cb0c297
      JJ Kasper authored
      3cb0c297
    • JJ Kasper's avatar
      Remove static generation bail-out from usePathname (#42440) · eb0d9f5e
      JJ Kasper authored
      x-ref: [slack
      thread](https://vercel.slack.com/archives/C035J346QQL/p1667504961058549)
      
      ## 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)
      eb0d9f5e
    • JJ Kasper's avatar
      Fix undici warning showing unexpectedly (#42444) · c0a8c881
      JJ Kasper authored
      Fixes: https://github.com/vercel/next.js/issues/42441
      
      ## 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)
      c0a8c881
    • JJ Kasper's avatar
      Fix invalid markdown lang (#42442) · 0eed1076
      JJ Kasper authored
      x-ref: [slack
      thread](https://vercel.slack.com/archives/C02F56A54LU/p1667507770684919)
      
      ## 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)
      0eed1076
    • Wyatt Johnson's avatar
      Change `usePathname` to return `string | null` (#42380) · 1f55ba35
      Wyatt Johnson authored
      This changes the API of `usePathname` to return `string | null` to
      support hybrid use-cases where the pathname is unknown at build time
      (during automatic static optimization and when fallback is set true with
      dynamic parameters in the pathname).
      
      This supports a cleaner DX experience for those moving from `pages/` to
      `app/` so they can begin to use `usePathname` in components that are
      shared across them.
      1f55ba35
    • Tim Neutkens's avatar
      Clarify app and pages file conflicting files (#42415) · e74de1a4
      Tim Neutkens authored
      Improvement to how the `app` and `pages` files conflict is shown.
      Especially the last log line `"pages/" - "app/"` made it seem like you
      should remove the `pages` folder altogether. This was a bug in how the
      `''` case was displayed. After having a look at this I went further and
      added exactly which file caused the conflict given that `app` allows you
      to create `app/(home)/page.js` and such it saves some digging for what
      the actual conflicting file is. Similarly in `pages` both
      `pages/dashboard/index.js` and `pages/dashboard.js` are possible.
      
      Before:
      ```
      error - Conflicting app and page files were found, please remove the conflicting files to continue:
      error -   "pages/another" - "app/another"
      error -   "pages/hello" - "app/hello"
      error -   "pages/" - "app/"
      ```
      
      After:
      ```
      error - Conflicting app and page files were found, please remove the conflicting files to continue:
      error -   "pages/another.js" - "app/another/page.js"
      error -   "pages/index.js" - "app/page.js"
      error -   "pages/hello.js" - "app/hello/page.js"
      ```
      
      ## 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)
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      e74de1a4
    • Jiachi Liu's avatar
      Do not strip loader arg in dynamic for server components (#42426) · 21b6654e
      Jiachi Liu authored
      When `ssr: false` option is presented, we stripped the loader option for
      `next/dynamic` call. But for react server components (both server and
      client ones) we're using a `React.lazy` based implementation so we
      shouldn't do it for them.
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      21b6654e
    • JJ Kasper's avatar
      Avoid breaking useRouter() type change (#42430) · 152f51c6
      JJ Kasper authored
      Since `useRouter()` can still be used in `pages` alone and should always
      be a valid instance we shouldn't change the default return type to avoid
      a breaking type change.
      
      Fixes: https://github.com/vercel/next.js/issues/42409
      
      ## 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)
      152f51c6
    • Hannes Bornö's avatar
      Google fonts single request (#42406) · 8fa78a5e
      Hannes Bornö authored
      Make a single request when using several weights and/or styles for
      google fonts instead of one for each variation.
      
      ## 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)
      8fa78a5e
    • Shu Uesugi's avatar
      Fix font-optimization.md syntax errors (#42403) · 6edeb9d4
      Shu Uesugi authored
      Fixes syntax errors introduced in https://github.com/vercel/next.js/pull/42266
      
      ## 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)
      Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
      6edeb9d4
    • Hannes Bornö's avatar
      Mock @next/font when using next/jest (#42413) · 539769dd
      Hannes Bornö authored
      Mock `@next/font` when using `next/jest`.
      
      fixes #42379
      
      ## 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)
      539769dd
    • Steven's avatar
      Fix docs for next/image upgrade guide (#42424) · 73c5b77a
      Steven authored
      This fixes a typo and also clarifies when the codemod might fail to
      migrate properly.
      73c5b77a
    • 7yue's avatar
      examples: Fix with-turbopack typo (#42410) · 163e8964
      7yue 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:
      -->
      
      ## 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)
      163e8964
    • Aditya Bhaskar Sharma's avatar
      fixed missing `<Link />` keyword (#42422) · 310fe3cb
      Aditya Bhaskar Sharma authored
      The keyword <Link /> is apparently not being shown on the page. Adding
      "`" around the word will make it work.
      
      <!--
      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:
      -->
      
      ## 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)
      310fe3cb
    • Lucas Rosa's avatar
      Fix Docs API Reference font.md broken link (#42418) · e480b1d8
      Lucas Rosa authored
      ## 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)
      e480b1d8
    • Shu Ding's avatar
      Fix entry creation on Windows (#42421) · 83e19a25
      Shu Ding authored
      In Windows absolute paths start with things like `C:\` instead of `/`.
      This PR closes #42024 as I confirmed the reproduction app is working
      properly with this fix.
      
      ## 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)
      83e19a25
    • JJ Kasper's avatar
      Add meta tag to default app template (#42394) · 4af50116
      JJ Kasper authored
      x-ref: [slack
      thread](https://vercel.slack.com/archives/C03KAR5DCKC/p1667452501488239)
      
      ## 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)
      4af50116
    • JJ Kasper's avatar
      v13.0.2-canary.2 · 59a0d4a2
      JJ Kasper authored
      59a0d4a2
    • JJ Kasper's avatar
      Update swc builds (#42393) · 10f2c5a7
      JJ Kasper authored
      x-ref:
      https://github.com/vercel/next.js/actions/runs/3382765061/jobs/5618315815
      
      ## 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)
      10f2c5a7
    • JJ Kasper's avatar
      v13.0.2-canary.1 · f1b13d70
      JJ Kasper authored
      f1b13d70
    • JJ Kasper's avatar
      Update default eslint choice for CNA setup (#42371) · 5da108bc
      JJ Kasper authored
      This ensures we continue to default to ESLint be configured for new
      projects so that our lint checks are enabled for new projects.
      
      ## 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)
      5da108bc
    • Shu Ding's avatar
      Fix CSS modules imports not collected due to race conditions (#42392) · cd897b5c
      Shu Ding authored
      This PR fixes the bug reported by @hanneslund (reproduction:
      https://github.com/hanneslund/css-mod-import-test).
      
      There can be multiple modules with the same resource, some of them can
      be created via plugins (extracted by the mini-css plugin) and some can
      be directly transformed via loaders (e.g. the CSS modules loader). In
      these cases, we need to merge the resources generated by all of them.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [x] 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)
      cd897b5c
    • Ayanwola Ayomide's avatar
      update middleware cookies example (#42341) · a0f37877
      Ayanwola Ayomide authored
      in the example at ## Using Cookies, the first example, the cookie header assumption was wrong. It first confused me, before I knew it was meant to be `nextjs` instead. Thanks for building an amazing library
      
      
      
      ## 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
      - [x] 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)
      a0f37877
    • OJ Kwon's avatar
      feat(next/mdx): support experimental mdx-rs loader (#41919) · 5654cae2
      OJ Kwon 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:
      -->
      
      This PR implements a configuration option in `next.config.js` to support
      for rust-based MDX compiler (https://github.com/wooorm/mdxjs-rs).
      Currently it is marked as experimental, as mdx-rs and loader both may
      need some iteration to fix regressions.
      
      When a new experimental flag is set (`mdxRs: true`), instead of using
      `@mdx/js` loader `next/mdx` loads a new webpack loader instead.
      Internally, it mostly mimics mdx/js's loader behavior, however actual
      compilation will be delegated into next/swc's binding to call mdx-rs's
      compiler instead.
      
      I choose to use next-swc to expose its binding function, as mdx-rs
      internally uses swc already and creating new binary can double up
      bytesize (with all the complex processes of publishing new package).
      
      ## 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 lint`
      - [ ] The "examples guidelines" are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      5654cae2
    • Bryce Kalow's avatar
      fix: usage of wasm in an appDir page file using the edge runtime (#41689) · d159fb08
      Bryce Kalow authored
      
      
      Fixes #41673
      
      Updates the wasm `AssetBinding` filePath to be the fully qualified path during build so the files can get loaded.
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [x] 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 lint`
      - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      d159fb08
    • Tim Neutkens's avatar
      Ensure Undici is enabled for appDir in all cases (#42382) · 059538bc
      Tim Neutkens authored
      Fixes
      https://github.com/vercel/next.js/discussions/41745#discussioncomment-4040309
      
      <!--
      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:
      -->
      
      ## 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)
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      059538bc
  2. 02 Nov, 2022 13 commits
    • Oscar Busk's avatar
      Stop writing window specific paths in vscode configuration (#42338) · 6e442911
      Oscar Busk authored
      Vscode `tsdk` configuration handles POSIX path even on Windows, so
      there's no reason to write window-specific path to the configuration.
      
      I've always had forward slash path in `tsdk` and work on windows and in
      WSL, and that works.
      
      
      https://github.com/oBusk/npm-diff.app/blob/f71e4671430373c2af6a88c3c13f7c437334ab8d/.vscode/settings.json#L3
      
      Current solution will give a diff for people who have ran previous
      versions on windows. We could update the check to allow windows if you
      want to.
      6e442911
    • Hannes Bornö's avatar
      useSelectedLayoutSegment at the current level (#42299) · 8350f7ef
      Hannes Bornö authored
      When `useSelectedLayoutSegment` is used on the current level or in a
      page it should return null.
      
      fixes #41879
      fixes #41878
      
      ## 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)
      8350f7ef
    • Oscar Busk's avatar
      [eslint-plugin] Stop warning for head element in app/layout on Windows (#42336) · 9de871e6
      Oscar Busk authored
      ## Bug
      
      
      ![image](https://user-images.githubusercontent.com/13413409/199451248-051751e5-0a5b-4ee0-bcae-05d2933f0090.png)
      
      When trying to use app directory on Windows, the automatically created
      `Layout.tsx` get's a lint problem for having a `<head>` element.
      
      ## Solution
      
      Update the rule to check paths using `path.sep` rather than hardcoded
      `/`
      
      I also checked with `path.posix.sep` because some other rules was doing
      that (both `path.sep` and `path.posix.sep`), so I'm just following
      pattern
      9de871e6
    • Hannes Bornö's avatar
      Local font family name (#42286) · f0e768e0
      Hannes Bornö authored
      Use the name of the assigned const as the family name instead of trying
      to get it from the font file. That way we know we won't get any invalid
      characters in the font-family name.
      
      fixes #42264
      
      ## 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)
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      f0e768e0
    • inokawa's avatar
      Update customizing-postcss-config.md (#42331) · 6d7c4c71
      inokawa authored
      
      
      ## 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)
      6d7c4c71
    • Shu Ding's avatar
      Add `prisma` to the external package list (#42323) · eaeb1311
      Shu Ding authored
      It uses __dirname in eval and similar things, and can't be bundled
      correctly. Hence we are adding it to the list of external packages.
      
      ## 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)
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      eaeb1311
    • Dan Mindru's avatar
      Fix typo in app / hello.js template (#42335) · 503fc854
      Dan Mindru authored
      Removes the extra `}` in the url
      
      <!--
      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:
      -->
      503fc854
    • Cody Lundquist's avatar
      Fix negative lookahead example in middleware.md (#42320) · a482f068
      Cody Lundquist authored
      If you don't prefix `static` with `_next`, none of the JS will be able
      to load.
      
      <!--
      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:
      -->
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `pnpm build && pnpm lint`
      - [x] The "examples guidelines" are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      a482f068
    • JJ Kasper's avatar
    • Tim Neutkens's avatar
      Ensure edge runtime doesn't propagate `cache` on fetch as Cloudflare doesn't support it. (#42362) · aef04a98
      Tim Neutkens authored
      Ensures `cache` property is removed. We'll want to move this handling
      into the `edge-runtime` package though.
      
      
      <!--
      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:
      -->
      
      ## 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)
      aef04a98
    • Wyatt Johnson's avatar
      create-next-app: add head to template (#42357) · 8715fe03
      Wyatt Johnson 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:
      -->
      
      Added the `head.{j,t}sx` files to the `create-next-app` templates.
      8715fe03
    • JJ Kasper's avatar
      Update dev process exit handling (#42367) · 2a9e2f18
      JJ Kasper authored
      Follow-up to https://github.com/vercel/next.js/pull/42255
      
      ## 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)
      2a9e2f18
    • Alexander Kadyrov's avatar
      Fix typo in usage of onError in script.md (#42368) · 6bb8407b
      Alexander Kadyrov authored
      
      
      ## 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)
      6bb8407b