After 70 canary releases we are pleased to introduce Next.js 9, featuring:
As always, we have strived to ensure all these benefits are backwards compatible. For most Next.js applications, all you need to do is run:
There are very few cases where your codebase might require changes. See the upgrade guide for more information.
Since our last release, we’re happy to have seen companies like IGN , Bang & Olufsen , Intercom , Buffer , and Ferrari launch with Next.js. Check out the showcase for more!
One year ago Next.js 6 introduced basic TypeScript support through a plugin called @zeit/next-typescript . Users also had to customize their .babelrc and enable it in next.config.js .
This is an excerpt. The full article is published by Next.js Blog.
Answers to common questions regarding this article's topic, architecture, and practical applications.
After 70 canary releases we are pleased to introduce Next.js 9, featuring:
Definition / Understanding
One year ago Next.js 6 introduced basic TypeScript support through a plugin called @zeit/next-typescript. Users also had to customize their .babelrc and enable it in next.config.js. When configured, the plugin would allow .ts and .tsx files to be built by Next.js. However, it did not integrate type-checking, nor were types provided by Next.js core. This meant a community package had to be maintained separately in DefinitelyTyped that could be out
General
Next.js 9 will automatically prefetch <Link> components as they appear in-viewport. This feature improves the responsiveness of your application by making navigations to new pages quicker. Next.js uses an Intersection Observer to prefetch the assets necessary in the background. These requests have low-priority and yield to fetch() or XHR requests. Next.js will avoid automatically prefetching if the user has data-saver enabled. You can opt-out of
General
Next.js added support for static website generation in v3, released approximately two years ago. At the time, this was the most requested feature to be added to Next.js. And for good reason: there's no denying that static websites are fast! They require no server-side computation and can be instantly streamed to the end-user from CDN locations. However, the choice between a server-side rendered or statically generated application was binary, you
General
Dynamic routing (also known as URL Slugs or Pretty/Clean URLs) was one of the first feature requests on GitHub after Next.js was released 2.5 years ago! The issue was "solved" in Next.js 2.0 by introducing the custom server API for using Next.js programmatically. This allowed using Next.js as a rendering engine, enabling abstractions and mapping of incoming URLs to render certain pages. We spoke with users and examined many of their applications,