- 01 Jul, 2021 13 commits
-
-
JJ Kasper authored
-
Steven authored
* Update `publish-canary` script to include checkout * Update contrib with publishing section
-
Steven authored
Fixes #26587
-
Steven authored
Adding additional tests. Follow up to #26705
-
Artur Sedlukha authored
Fix after https://github.com/vercel/next.js/pull/26133
-
Joachim Viide authored
This pull request adds "Vary: Accept" header to responses from the image optimizer (i.e. the /_next/image endpoint). The image optimizer prefers re-encoding JPG files to WebP, but some browsers (such as Safari 14 on Catalina) do not yet support WebP. In such cases the optimizer uses the Accept header sent by the browser to send out a JPG response. Thus the optimizer's response may depend on the Accept header. Potential caching proxies can be informed of this fact by adding "Vary: Accept" to the response headers. Otherwise WebP data may be served to browsers that do not support it, for example in the following scenario: * A browser that supports WebP requests the JPG. The optimizer re-encodes it to WebP. The proxy caches the WebP data. * After this another browser that doesn't support WebP requests the JPG. The proxy sends the WebP data to the browser. - [x] Integration tests added - [x] Make sure the linting passes
-
Steven authored
This adds a new prop, `onLoadingComplete()`, to handle the most common use case of `ref`. I also added docs and a warning when using `ref` so we recommend the new prop instead. - Fixes #18398 - Fixes #22482
-
JJ Kasper authored
This fixes the `font-optimization` test failing from the links/content changing slightly in the snapshot. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added ## 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. ## Documentation / Examples - [ ] Make sure the linting passes
-
Jiachi Liu authored
Co-authored-by:
Tobias Koppers <tobias.koppers@googlemail.com> Co-authored-by:
Tim Neutkens <tim@timneutkens.nl>
-
JJ Kasper authored
-
D. Kasi Pavan Kumar authored
## Bug - [ ] ~~Related issues linked using `fixes #number`~~ - [ ] ~~Integration tests added~~ ## 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.~~ ## Documentation / Examples - [x] Make sure the linting passes
-
JJ Kasper authored
-
Jiachi Liu authored
## Enhance simplify detection for visiting `_error` x-ref: #26610
-
- 30 Jun, 2021 10 commits
-
-
JJ Kasper authored
-
JJ Kasper authored
-
Nils Schönwald authored
## Bug fixes #26309 ## Documentation / Examples see #26309 - [ ] Make sure the linting passes
-
Steven authored
This solves the main use case from Issue #19914. Previously, we would set the `Cache-Control` header to a constant and rely on the server cache. This would mean the browser would always request the image and the server could response with 304 Not Modified to omit the response body. This PR changes the behavior such that the `max-age` will propagate from the upstream server to the Next.js Image Optimization Server and allow browser caching. ("upstream" meaning external server or just an internal route to an image) This PR does not change the `max-age` for static imports which will remain `public, max-age=315360000, immutable`. #### Pros: - Fewer HTTP requests after initial browser visit - User configurable `max-age` via the upstream image `Cache-Control` header #### Cons: - ~~Might be annoying for `next dev` when modifying a source image~~ (solved: use `max-age=0` for dev) - Might cause browser to cache longer than expected (up to 2x longer than the server cache if requested in the last second before expiration) ## Bug - [x] Related issues linked using `fixes #number` -
JJ Kasper authored
* Disable build-output size specific tests * remove size-limit test * lint-fix
-
Jiachi Liu authored
* fix: react 18 new hydration API * support react 18 * compat latest react only, fix resolved version * fix tests * Some changes based on https://github.com/reactwg/react-18/discussions/5 * fix test Co-authored-by:
Tim Neutkens <timneutkens@me.com> Co-authored-by:
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Tim Neutkens authored
* Move next-server directory files to server directory * Update tests * Update paths in other places
-
Tim Neutkens authored
-
Tim Neutkens authored
-
Tim Neutkens authored
-
- 29 Jun, 2021 5 commits
-
-
Gerald Monaco authored
`next-dev-server` having its own implementations of `renderToHTML` and `renderErrorToHTML` has historically made reasoning about streaming hard, as it adds additional places where status codes are explicitly set and the full HTML is blocked on. Instead, this PR simplifies things considerably by moving the majority of the custom logic for e.g. hot reloading and on-demand compilation to when we're resolving the page to be loaded, rather than upfront when handling the request. It also cleans up a few other details (e.g. default error page rendering) that managed to creep into the base implementation over time. One unfortunate side effect is that this makes compilation errors slightly more difficult. Previously, we'd render them directly. Now, we have to rethrow them. But since they've already been logged (by the watch pipeline), we have to make sure they don't get logged again.
-
Soham Shah authored
## Bug - [X] Related issues linked using `fixes #26713 ` ## 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. ## Documentation / Examples - [X] Make sure the linting passes ## Screenshots After this small change the warning disappears. 
-
Houssein Djirdeh authored
Adds `--max-warnings` flag to `next lint` to enable setting of a maximum warning threshold. Fixes #26671
-
hiro authored
* fix: typo occured -> occurred * fix: typo occured -> occurred * fix: typo occured -> occurred * fix: typo occured -> occurred * lint-fix Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Lee Robinson authored
* Update layouts example * Update examples/layout-component/components/layout.js Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
- 28 Jun, 2021 6 commits
-
-
Steven authored
Fixes #23523 by adding image content type detection ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added
-
JJ Kasper authored
-
JJ Kasper authored
This ensures API routes are not available under the locale path since API routes don't need to be localized and we don't provide the locale to the API in any way currently so the user wouldn't be aware if the localized API route was visited instead of the non-localized. Fixes: https://github.com/vercel/next.js/issues/25790 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added
-
Jiachi Liu authored
Fixes #19862 Avoid executing `webpack` property on `loadableGenerated` of loadable component compiled from `next/dynamic` when `require.resolveWeak` is unavailable due to jest runtime missing `require.resolveWeak`. ## Bug - [x] Related issues linked using `fixes #number` - [x] unit tests added
-
JJ Kasper authored
This fixes non-stop reloading when visiting `_error` directly in development caused by the `statusCode` being 200 unexpectedly while HMR returns the page as `invalid` which triggers `on-demand-entries` to reload the page. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: https://github.com/vercel/next.js/issues/8036 x-ref: https://github.com/vercel/next.js/pull/8033
-
JJ Kasper authored
This makes sure we don't attempt flushing cache info to disk for `getStaticProps` `redirect` items with `revalidate` Fixes: https://github.com/vercel/next.js/issues/20816 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added
-
- 25 Jun, 2021 6 commits
-
-
Vadorequest authored
* Add link to live demo already hosted To make it easier for people to simply see the live example without having to deploy a whole new project * update link Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Peter Mekhaeil authored
-
Tim Neutkens authored
Fixes #26547 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added ## 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. ## Documentation / Examples - [ ] Make sure the linting passes
-
Tim Neutkens authored
-
Tim Neutkens authored
* Add trace url on bootup * Update whitelist -> accesslist * Add name to webpack-invalidated