- 12 3月, 2021 2 次提交
-
-
由 JJ Kasper 提交于
-
由 Dale Bustad 提交于
These messages aren't necessary in the normal course of using Next.js. Hiding behind a flag to reduce the noise.
-
- 11 3月, 2021 4 次提交
-
-
由 Nabil Boussouf 提交于
Set tailwindcss as a development dependency https://tailwindcss.com/docs/guides/nextjs#install-tailwind-via-npm
-
由 JJ Kasper 提交于
-
由 Dale Bustad 提交于
A number of changes here. I recommend viewing the diff with the <a href="?w=1">whitespace flag enabled</a>. - OpenTelemetry is replaced with a custom and lightweight tracing solution. - Three trace targets are currently supported: console, Zipkin, and NextJS. - Tracing is now governed by environment variables rather than `--require instrument.js`. + `TRACE_TARGET`: one of `CONSOLE`, `ZIPKIN`, or `TELEMETRY`; defaults to `TELEMETRY` if unset or invalid. + `TRACE_ID`: an 8-byte hex-encoded value used as the Zipkin trace ID; if not provided, this value will be randomly generated and passed down to subprocesses. Other sundry: - I'm missing something, probably a setup step, with the Zipkin target. Traces are captured successfully, but you have to manually enter the Trace ID in order to view the trace - it doesn't show up in queries. - I'm generally unhappy with [this commit](https://github.com/vercel/next.js/pull/22713/commits/235cedcb3ead76b630b4c8aa695f904489da2831). It is... untidy to provide a telemetry object via `setGlobal`, but I don't have a ready alternative. Is `distDir` strictly required when creating a new Telemetry object? I didn't dig too deep here. As noted, there are a lot of changes, so it'd be great if a reviewer could: - [ ] pull down the branch and try to break it - [ ] check the Zipkin traces and identify possible regressions in the functionality Closes #22570 Fixes #22574
-
由 Lee Robinson 提交于
-
- 10 3月, 2021 3 次提交
-
-
由 JJ Kasper 提交于
-
由 Shu Ding 提交于
Currently if you have `sizes` set in `next/image`, the image will likely be downloaded multiple times (usually twice) on Safari (macOS and iOS): the correct size for the viewport, and the original size specified in `src`. Also make sure you have "Ignore Resource Cache" disabled in the Safari Devtools when trying to reproduce: ![CleanShot 2021-03-09 at 21 05 54@2x](https://user-images.githubusercontent.com/3676859/110476820-6399f180-811d-11eb-93ec-5b2482c87884.png) The root cause is the way Safari handles `<img>`'s attribute updates. Although React updates all the attributes one by one synchronously and programmatically, Safari will still try to fetch the resource immediately and won't wait for other DOM changes to be finished. That means if we set the following 3 attributes in this order: `src`, `srcSet`, `sizes`. Safari will fetch the image when `src` is set. And then once `srcSet` is there it will fetch the resource again based on it. And finally, when `sizes` is updated it might correct the resource URL again. So the fix here is simple: by just reordering those to `sizes`, `srcSet`, `src`, it will only load the image with the correct size only once: <img width="1498" alt="CleanShot 2021-03-09 at 21 05 30@2x" src="https://user-images.githubusercontent.com/3676859/110477852-a27c7700-811e-11eb-88dc-d6e7895f67bd.png"> Fixes #19478.
-
由 JJ Kasper 提交于
This adds an `appDir` field to the `required-server-files` manifest signifying where the app source is located. x-ref: https://github.com/vercel/next.js/issues/22847
-
- 09 3月, 2021 7 次提交
-
-
由 Tim Neutkens 提交于
-
由 JJ Kasper 提交于
Co-authored-by: NTim Neutkens <tim@timneutkens.nl> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 JJ Kasper 提交于
This updates to not automatically export `/500` from `_error` if a custom `getInitialProps` is used since logic may be used inside of this method that causes the export to fail. Users can still opt-in to the static `/500` by adding a `pages/500.js` file. This also refactors checking `_app` for custom `getInitialProps` to outside of the static check loop to prevent a potential race condition where we could run this check multiple times un-necessarily. Fixes: https://github.com/vercel/next.js/issues/22815
-
由 Yuki Takemoto 提交于
This PR fixed a typo in api reference.
-
由 DOUGES 提交于
Hiya! I was asked to add an example of how to use [Compiled](https://compiledcssinjs.com/) with Next.js, figured I might as well at it to the source
😄 . Let me know if there's any changes needed. -
由 JJ Kasper 提交于
-
由 JJ Kasper 提交于
This ensures we load all env values before loading `next.config.js` since these values can be used in there. This also updates to ensure we're testing these values are available while loading `next.config.js` so we don't regress on this. Fixes: https://github.com/vercel/next.js/issues/22811
-
- 08 3月, 2021 9 次提交
-
-
由 Tim Neutkens 提交于
Upgrades webpack 5 to the latest version.
-
由 Jason Emery 提交于
include scroll option documentation for router.push
-
由 Sadra Bahrami 提交于
Hi I saw you wrote extra async await code for command line function that doesn't need. I fixed that and code become very smaller and prettier. ![ts](https://user-images.githubusercontent.com/48912836/110254867-442c8880-7fa6-11eb-9f0f-3b853d5db94c.png)
-
由 Sebastian Andil 提交于
Add note about restarting dev server on changes to tsconfig / jsconfig
-
由 harshit bhalla 提交于
-
由 Tim Neutkens 提交于
-
由 JJ Kasper 提交于
This ensures we don't export `/404` during the automatic static optimization during build when the `/404` isn't static and won't be used/copied to the final output. x-ref: https://github.com/vercel/next.js/issues/22815
-
由 Laith Younes 提交于
### Arabic/Hebrew RTL to `with-next-translate` Example Added a simple example to change HTML direction based on the currently selected language ### References: - [#19049](https://github.com/vercel/next.js/discussions/19049) - [#18667](https://github.com/vercel/next.js/issues/18667)
-
由 Edaz 提交于
-
- 06 3月, 2021 3 次提交
-
-
由 JJ Kasper 提交于
-
由 Shu Ding 提交于
This PR adds request deduplication for `_getServerData`. If a request with the same URL is already in-flight, we don't send another new request. When a request succeeds or fails, we delete the cache. A potential improvement this brings is, when `getServerSideProps` of a new route is slow to load, the user might keep clicking on the link which causes new requests, and the route will never update because results of old requests were ditched. Also adds a test case for this scenario. Closes #19238.
-
由 Shu Ding 提交于
In the current implementation, `idleTimeout` will always be thrown even if it didn't time out and `Promise.race` was resolved. This causes the error `Error: Route did not complete loading` on every route transition and Chrome Devtools will pause code execution if you have "Pause on exceptions" enabled. This PR adds `resolvePromiseWithTimeout` which does the same thing as `Promise.race` and `idleTimeout`, but it cancels the rejection when it resolves successfully, in which case the error won't be thrown. Fixes #21543.
-
- 05 3月, 2021 5 次提交
-
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
-
由 JJ Kasper 提交于
-
由 JJ Kasper 提交于
This fixes the case where index page revalidation would match a dynamic page instead of the index page from the pathname not being denormalized. Fixes: https://github.com/vercel/next.js/issues/22750
-
由 Tim 提交于
Added preview example with Prepr CMS. Working demo at https://next-blog-prepr.vercel.app/
-
- 04 3月, 2021 5 次提交
-
-
由 NkxxkN 提交于
Hey team! We are updating the `with-supertokens` example to reflect the use of credentials alongside third party login See: ![image](https://user-images.githubusercontent.com/5072452/109943811-dd714b80-7cd5-11eb-91b5-5a966a1c1e2d.png) This PR bumps the versions and add a base example implementation.
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
This updates the `NEXT_LOCALE` cookie docs to mention how it is used for redirecting from `/` more specifically. x-ref: https://github.com/vercel/next.js/pull/20045#discussion_r586158535
-
由 JJ Kasper 提交于
This ensures we load `_document` then `_app` and then the page's component in all cases which matches behavior between the serverless target and the default server target. Additional tests to ensure this order is followed has been added to prevent regression. Fixes: https://github.com/vercel/next.js/issues/22732
-
- 03 3月, 2021 2 次提交
-
-
由 Grigory 提交于
@babel/plugin-proposal-class-properties is missing in with-mobx-react-lite example
-
由 Chris Meagher 提交于
I added this in to my own pipeline to fix the no-cache error and thought it may be of use to others.
-