- 03 Mar, 2021 2 commits
-
-
Tim Neutkens authored
-
JJ Kasper authored
This updates to output server chunks to a nested folder to prevent bundling the entire folder when tracing. This also fixes the webpack 5 tests not actually using webpack 5 since https://github.com/vercel/next.js/pull/22583 since the webpack 5 enabling check didn't account for the test environment variable used to enable webpack 5. This also clears up some deprecation warnings from webpack 5 in the mini-css-extract-plugin. Fixes: https://github.com/vercel/next.js/issues/21297
-
- 02 Mar, 2021 9 commits
-
-
JJ Kasper authored
-
JJ Kasper authored
-
Janicklas Ralph authored
Making experimental script work in _document.js - Fixes for server to client transition Adding additional test for _document.js
-
Joe Haddad authored
-
Lee Robinson authored
Help clarify that this option is available!
-
Yasser A.Idrissi authored
-
Yann Pringault authored
This avoids the warning when you init a new Next.js app with the example: ``` warn - React 17.0.1 or newer will be required to leverage all of the upcoming features in Next.js 11. Read more: https://err.sh/next.js/react-version ```
-
Lee Robinson authored
Preloading is mentioned in the `next/link` docs, but not in the routing introduction.
-
Ålex authored
Change 'an' of "The page has an user-accessible" to 'a'.
-
- 01 Mar, 2021 7 commits
-
-
Joe Haddad authored
-
dominicfraser authored
There are two examples, one (a) for "Authenticating Statically Generated Pages" and one (b) for "Authenticating Server-Rendered Pages". (a) uses a sudo `useUser` hook to fetch the user client-side. It looks like the example for (b) was copied and pasted then edited from (a), but in (b) this `useUser` hook is not used (instead using `req.session.get('user')`). This PR simply removes the unused import in the (b) example. -
Lee Robinson authored
In case a user lands on this page via search or from Google, we should mention the other ways you can redirect with Next.js.
-
NkxxkN authored
Hey team. This PR is a follow up on https://github.com/vercel/next.js/pull/21384 to add a reference to `with-supertokens` example to authentication doc.
-
Joe Haddad authored
-
Rostyslav Sipakov authored
Delete "prettier/@typescript-eslint" from .eslintrc.json. After update to the last version I getting this error on running lint: ESLint couldn't find the config "prettier/@typescript-eslint" to extend from. I explore this issue https://github.com/prettier/eslint-config-prettier/pull/175 and I think those extensions aren't needed anymore.
-
Lee Robinson authored
I've seen this confusion come up a few times, specifically [here](https://www.reddit.com/r/nextjs/comments/lsmpon/is_there_a_benefit_to_using_api_when_you_are_only/) for the latest.
-
- 27 Feb, 2021 3 commits
-
-
Nick Babcock authored
Since Rust 1.30 (released Oct 2018), the wasm target is supported on stable. ref: https://rustwasm.github.io/book/game-of-life/setup.html#the-rust-toolchain
-
Joe Haddad authored
This pull request ensures the webpack hook is installed before an attempt is made to load the configuration. This pull request is tested by the PnP tests, which should now be passing as a result of this change. --- Fixes #21679
-
Jan Potoms authored
Just the conversion of config loading from sync to async from https://github.com/vercel/next.js/pull/22153 cc @Timer
-
- 26 Feb, 2021 2 commits
-
-
devuxer authored
Deep matching destructuring syntax is hard to understand and read vs. `const { ... } = req.query`. -
Slawa Pidgorny authored
-
- 25 Feb, 2021 6 commits
-
-
LUIS ANAYA authored
- Removed deprecated drei dependency. - Added @react-three/drei and updated imports. - Upgraded other dependencies to latest versions.
-
Adrien MILLE authored
We do have a third argument on `processEnv` to customize the console instance, however `processEnv` relies on `processEnv` which also have the same argument for the same purpose but it's not forwarded from `processEnv`. Was there a purpose for it to be left out ? If not I would expect it to be forwarded
😄 Closes: https://github.com/vercel/next.js/pull/21788 -
lindsaylevine authored
Fixes https://github.com/vercel/next.js/issues/21943 i confirmed in a personal test repo that this solves the issue of infinite 307s on root level non-default locales :) let me know what else this needs if anything! thanks for the time/help @ijjk
❤ ️ -
Alex authored
After testing the new docker deployment documentation, ran into the following error when running the container if you're using `next/image`: ``` [Error: EACCES: permission denied, unlink '/app/.next/cache/images/2+fKe4RlpMaSTNc8npKwiCItZgik9aOX9qkxnVSrsUo=/1613616499089.3hEMhfux5+SolMDEVHEaVPK2O0OlcLoYNao0yKpmYeg=.webp'] { errno: -13, code: 'EACCES', syscall: 'unlink', path: '/app/.next/cache/images/2+fKe4RlpMaSTNc8npKwiCItZgik9aOX9qkxnVSrsUo=/1613616499089.3hEMhfux5+SolMDEVHEaVPK2O0OlcLoYNao0yKpmYeg=.webp' } ``` This change gives the user correct ownership to have the correct permissions. -
JJ Kasper authored
-
JJ Kasper authored
This ensures `distDir` is set under `renderOpts` in `next-server` so that it is present when experimental `optimizeCss` is enabled. x-ref: https://github.com/vercel/next.js/pull/16539
-
- 24 Feb, 2021 10 commits
-
-
Noah Fischer authored
-
Alex Castle authored
Currently, the image component doesn't handle use of the `sizes` property with `layout="fill"` and `layout="responsive"` very well for small viewports. It will never include sizes smaller than the smallest viewport (640px) in the srcset, so even if you specify `sizes="30vw"` in your image, you have to download the full-viewport-width image on small devices. This PR adds logic such that if you use `layout="fill"` and include a `sizes` property, the image component will include the full range of image sizes in the `srcset`. It also includes an optimization where it finds the smallest `vw` value in the sizes value and combines that with the smallest viewport width, and uses that as the floor of the srcset. It does this so it doesn't unnecessarily increase transfer size by including ALL sizes. This is still a conservative optimization--for 95% of cases, taking the _largest_ `vw` size would work, but I don't see a way to do that without breaking a few corner cases. The case of a sizes prop with `px` values is fixed but not optimized--though generally that case is less of a good fit for the fill or responsive layout anyway.
-
JJ Kasper authored
This mentions how locale routes are transformed when `locale: false` is not used to explain why regex routes might not match with i18n. Closes: https://github.com/vercel/next.js/issues/21507
-
JJ Kasper authored
-
Joe Haddad authored
Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
JJ Kasper authored
This ensures we handle resolve rewrites during prefetching the same way we do during a client-transition. Previously if a rewritten source was used in an `href` neither the page bundle or SSG data if needed would be prefetched although would work correctly on a client transition. Fixes: https://github.com/vercel/next.js/issues/22441
-
Johan Eliasson authored
-
Lee Robinson authored
-
Alex authored
Update docker file example in deploy documentation to use correct working directory in builder stage. It will fail to copy files from that stage since it's attempting to copy files that don't exist.
-
Armando Magalhães authored
Add a Docker Image section into the Deployment Documentation with an example and how to build and run it. The example is a multi-stage docker image with node modules layer caching for faster builds in development and a result image just with the node_modules and build code needed to run the application within a custom user with restricted access. The example contains a commented piece of code on how to disable telemetry as well. This is useful for folks that are deploying to container orchestrators like ECS, Kubernetes (GKE, EKS, AKS) or Hashicorp Nomad, as well as just running a docker container in a single node in some cloud provider.
-
- 23 Feb, 2021 1 commit
-
-
JJ Kasper authored
-