jescalan
Repos
173
Followers
690
Following
92

Load mdx content from anywhere through getStaticProps in next.js

1564
97

A Next.js plugin that enables MDX pages, layouts, and front matter

475
35

The React Framework

93490
20027

:diamond_shape_with_a_dot_inside: transform html with javascript plugins

319
11

A modern static build tool, powered by webpack

470
27

a toolkit for rapid advanced front-end development

1459
129

Events

[middleware] support destructuring for env vars in static analysis (#37556)

This commit enables the following patterns in Middleware:

// with a dot notation
const { ENV_VAR, "ENV-VAR": myEnvVar } = process.env;

// or with an object access
const { ENV_VAR2, "ENV-VAR2": myEnvVar2 } = process["env"];

Related

  • @cramforce asked this fixed here: https://github.com/vercel/next.js/pull/37514#discussion_r892437257

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
  • [x] 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

Fix react root env missing in NextServer (#37562)

  • Fix react root env missing in NextServer

  • switch to useId instead of using process.env var

  • add production test

  • extend timeout

  • fix test

  • fix lint

  • use version to detect if enable react root

Fix client entry unexpectedly created in app dir (#37561)

fix client entry unexpectedly created

Ensure check-precompiled exits correctly on failure (#37592)

  • Ensure check-precompiled exits correctly on failure

  • update compiled

Revert "Revert "Avoid unnecessary router state changes"" (#37593)

Reverts vercel/next.js#37572, with a new test case added about routeChangeComplete.

Update to process redirects/rewrites for _next/data with middleware (#37574)

  • Update to process redirects/rewrites for _next/data

  • correct matched-path resolving with middleware

  • Add next-data header

  • migrate middleware tests

  • lint-fix

  • update error case

  • update test case

  • Handle additional resolving cases and add more tests

  • update test from merge

  • fix test

  • rm .only

  • apply changes from review

  • ensure _next/data resolving does not apply without middleware

Bump @vercel/nft 0.20.0 (#37602)

  • Bump @vercel/nft 0.20.0

  • Filter out wasm files

  • Revert filter that is no longer needed

Co-authored-by: JJ Kasper jj@jjsweb.site

i18n regression tests and docs for ignore locale in rewrite (#37581)

  • Add regression tests for locale prefixed public files

  • Add tests for ignoring source locale in rewrite

  • Fix lint

  • Add doc example

  • Redirect tests

  • fix test names

  • update tests

Co-authored-by: JJ Kasper jj@jjsweb.site

Strip next internal queries for flight response (#37617)

Strip next internal queries in inline flight response

Bug

  • [ ] Related issues linked using fixes #number
  • [x] Integration tests added
  • [ ] Errors have helpful link attached, see contributing.md

v12.1.7-canary.34

Fix failing swc builds (#37629)

  • update android ndk path

  • re-add isRelease checks

Update usage of example.com -> example.vercel.sh (#37630)

  • Update usage of example.com -> example.vercel.sh

  • another one

  • another flakey test

v12.1.7-canary.35

Fix with mux video example (#37434)

  • fix: On error upchunk dispatches an object

  • chore: Typo on contribution guide, unverfied

  • Update contributing.md

Co-authored-by: Lee Robinson me@leerob.io Co-authored-by: JJ Kasper jj@jjsweb.site

chore: narrows regexp to enable middleware source maps (#37582)

  • chore: narrows regexp to enable middleware source maps

  • update test

Co-authored-by: JJ Kasper jj@jjsweb.site

Changed _app.js to a functional component (#37635)

Changed the class component to a functional component of the _app.js file. This is for the Context API example.

Bump version tailwindcss example to 3.1 (#37633)

feat(next export): add warning if using getInitialProps (#37642)

This PR builds on the work from @hattakdev (PR went stale: https://github.com/vercel/next.js/pull/14499) and adds a new integration test for the new warning.

Bug

  • [x] Related issues linked using fixes #number
  • [x] Integration tests added
  • [x] Errors have helpful link attached, see contributing.md

image

To run locally

  1. pnpm build
  2. pnpm testonly test/integration/export-getInitialProps-warn/test/index.test.js

Fixes #13946

Notes

I know the contributing.md doc said to avoid adding new tests to integration. It also said new tests should be written in TypeScript.

I wasn't sure where to put the tests for this so I went with integration. I also didn't see many other tests written in TS in this part of the codebase so I stuck with .js.

Co-authored-by: JJ Kasper 22380829+ijjk@users.noreply.github.com

Update with-faunadb dependencies (#37650)

This is just a bump of tech stack used in the example and small rewrite of swr functionality.

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 pnpm lint
  • [ x ] The examples guidelines are followed from our contributing doc

Co-authored-by: JJ Kasper 22380829+ijjk@users.noreply.github.com

[Script] Updates stale no-script-in-document-page error doc (#37568)

Recent changes to next/script introduced the capability to use beforeInteractive scripts in the custom document. This old error message is incorrect.

Created at 1 week ago
Created at 3 weeks ago
issue comment
feat(create-next-app): let users create TS projects using prompt; enhance tests

@ctjlewis - thank you for all your great work here, and I'm so sorry that it has taken us so long to review. We're going to try to find some time to get you a review here and keep this moving soon!

Created at 1 month ago
Created at 2 months ago
issue comment
SSG pages re-render if middleware is being used

We are looking into this on the nextjs team and it will be addressed with high priority. Thank you for all the background and discussion here everyone 🙏

Created at 2 months ago