- 03 11月, 2020 11 次提交
-
-
由 Steven 提交于
- Update default `deviceSizes` - Add default `imageSizes` - Use `layout` value to determine which `srcset` to use Fixes #18420 Closes #18714
-
由 JJ Kasper 提交于
This makes sure we don't incorrectly strip locale characters from the path if it is not a locale prefix e.g. `/fr` should not be removed from `/frank`. Additional tests have been added to ensure this isn't stripped for this case. Fixes: https://github.com/vercel/next.js/issues/18332
-
由 JJ Kasper 提交于
When visiting a non-locale prefixed path (`/hello` instead of `/fr/hello`) we don't trigger locale redirects currently so if another locale is matched we need to ensure this is reset to the `defaultLocale` for rendering to prevent a mis-match on the client and the server. This also fixes hydration errors from occurring with `asPath` for `getServerSideProps` pages due to `normalizeLocalePath` expecting only a pathname and `asPath` containing `hash` and `query values also. Fixes: https://github.com/vercel/next.js/issues/18337 Fixes: https://github.com/vercel/next.js/issues/18510
-
由 JJ Kasper 提交于
This adds support for passing `statusCode` in a `redirect` from `getServerSideProps` or `getStaticProps` which matches the `redirect` shape allowed to be returned for `redirects` in `next.config.js` Closes: https://github.com/vercel/next.js/issues/18350
-
由 JJ Kasper 提交于
Closes: https://github.com/vercel/next.js/issues/18694
-
由 JJ Kasper 提交于
This ensures we don't detect the locale from the header when `localeDetection` is set to `false` Fixes: https://github.com/vercel/next.js/issues/18482
-
由 JJ Kasper 提交于
This corrects additional fallback pages being generated without the fallback flag causing `getStaticProps` to be called without params with i18n. The revalidation aspect of the issue has been corrected separately in https://github.com/vercel/next.js/pull/18569 Fixes: https://github.com/vercel/next.js/issues/18404
-
由 JJ Kasper 提交于
This ensures the `html` tag's `lang` attribute is updated on client-transition when the locale is changing Fixes: https://github.com/vercel/next.js/issues/18452
-
由 JJ Kasper 提交于
* Ensure preload works correctly with locale option * Fix conditional import * Update size-limit tests * DCE some code * Resolve merge error Co-authored-by: NTim Neutkens <timneutkens@me.com>
-
由 JJ Kasper 提交于
This updates the documentation with the new `redirect` and `notFound` return values adding `redirect` to the `getStaticProps` section and adding a new section describing the return values allowed for `getServerSideProps` Closes: https://github.com/vercel/next.js/pull/18626 Closes: https://github.com/vercel/next.js/issues/18691
-
由 Joe Haddad 提交于
Fixes #18643
-
- 02 11月, 2020 6 次提交
-
-
由 Joe Haddad 提交于
-
由 Carmelo Scandaliato 提交于
Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
https://err.sh/nextjs由 Shun Kakinoki 提交于
Hi next.js team! Was trying out the canary and came across the error! The redirect to https://err.sh was to `https://github.com/vercel/nextjs`, not `https://github.com/vercel/next.js`
-
由 Steven 提交于
In PR #18147, we fixed the default loader to prevent upscaling images. This PR fixes the same bug for 3rd party loaders. --- Fixes #18648
-
由 Steven 提交于
Older versions of Safari (and other browsers) do not support webp format so we were incorrectly falling back to png. This PR fixes #18509 so that we fallback to the original image format if a modern format like webp was not explicitly provided in the Accept header. Tests were added to ensure that the Accept header for Safari, Firefox, and Chrome work properly.
-
由 Joe Haddad 提交于
-
- 01 11月, 2020 9 次提交
-
-
由 Joe Haddad 提交于
-
由 Minh Tu Le 提交于
Our code uses `core-js` to polyfill and because core-js [`es.symbol.description`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/es.symbol.description.js#L14-L16) doesn't just check for `Symbol.prototype.description`, it will try to polyfill again but fail to do so because Next.js polyfill is not configurable. By default, `Object.defineProperty` set `configurable` to `false`. Here are the screenshots of the error on Edge 44.18362.449.0 using Next.js v10.0.1-canary.1 ![Screen Shot 2020-10-30 at 9 44 05 PM](https://user-images.githubusercontent.com/1637627/97771409-da810700-1af9-11eb-8900-fe49d718dc94.png) ![Screen Shot 2020-10-30 at 9 51 43 PM](https://user-images.githubusercontent.com/1637627/97771433-321f7280-1afa-11eb-8928-fa4d902a01dd.png)
-
由 JJ Kasper 提交于
This makes sure we don't use invalid `x-now-route-matches` which can occur when `i18n` default locale is visited and a prerendered page is matched. To correct this we first check if we are able to derive the correct params from the URL and then bail on parsing `x-now-route-matches` if we are. Additional test cases are being added in the builder to ensure we don't regress on this x-ref: https://github.com/vercel/next.js/discussions/18443 Fixes #18602
-
由 Jan Potoms 提交于
-
由 Lukáš Huvar 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 Joe Haddad 提交于
-
由 Steven 提交于
-
由 Joe Haddad 提交于
This PR deprecates the `unsized` property from NextImage because the property did not accomplish the desired effect. Users should rely on one of the new layouts instead: - `<Image layout="fixed" />` - `<Image layout="intrinsic" />` - `<Image layout="responsive" />` - `<Image layout="fill" />` The `unsized` property will continue to work as-is in production but is deprecated and will throw in dev. --- ### TODO: - [x] test `layout=fill` in typescript types - [x] test `layout=fill` render behavior - [x] test that `unsized` switches to `layout=fill` - [x] test `next dev` erroring on `unsized` - [ ] layout docs (tracked in issue #18554) - [ ] both `layout=fill` and `layout=responsive` use all deviceWidths in the srcset --- Fixes #18541 Co-authored-by: NSteven <steven@ceriously.com>
-
由 Joe Haddad 提交于
-
- 31 10月, 2020 2 次提交
-
-
由 Daniel Treviño 提交于
Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 ospira 提交于
* small tweaks for those testing on an existing site with missing author or featured image on posts When migrating WordPress or using an exisitng site, sometimes you have published posts wth missing data. The graphql plugin will properly resolve these to null, but some of existing code accessing tries to access the node property on these null values. I've made these properties optional in the pages and also tweaked some of the components along similar lines. * Lint fix Co-authored-by: NLuis Alvarez <luis@vercel.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
- 30 10月, 2020 7 次提交
-
-
由 Yudai Oriver K 提交于
Fixes #18523 ## description The i18n-routing Vercel deploy button URLs was: https://vercel.com/import/project?template=https://github.com/vercel/next.js/tree/canary/examples/amp So, I fixed the URLs for examples/i18n-routing: https://vercel.com/import/project?template=https://github.com/vercel/next.js/tree/canary/examples/i18n-routing
-
由 Steven 提交于
Co-authored-by: NLuis Alvarez D. <luis@vercel.com>
-
由 Steven 提交于
This PR introduces a new `layout` property. This allows 3 possible values (`fixed`, `intrinsic`, or `responsive`) which solve many use cases we have seen since 10.0.0 and will hopefully avoid usage of `unsized`. Fixes #18351 Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 JJ Kasper 提交于
This ensures we provide the current `locale`, `locales`, and `defaultLocale` in the context when rendering the 404 for a blocking SSG page Fixes: https://github.com/vercel/next.js/issues/18505
-
由 Yuji Matsumoto 提交于
- Update Next.js version to 10.0.0 - Update the other dependencies - Modify `next.config.js` to prevent circular `__self` and `__source`in dev env (ref: https://github.com/developit/nextjs-preact-demo/issues/25)
-
由 JJ Kasper 提交于
-
由 JJ Kasper 提交于
This makes sure custom-routes function properly with i18n support. Since the `locale` is stripped from the `pathname` this re-adds when checking custom-routes to allow the locale to be matched against Closes: https://github.com/vercel/next.js/issues/18349
-
- 29 10月, 2020 5 次提交
-
-
由 Joe Haddad 提交于
-
由 Joris W 提交于
-
由 yokinist 提交于
Co-authored-by: NTim Neutkens <tim@timneutkens.nl>
-
由 Tim Neutkens 提交于
-
由 JJ Kasper 提交于
This adds an err.sh with info that can help when tracking down errors from invalid i18n config in next.config.js
-