|
15 | 15 | </a>
|
16 | 16 | </p>
|
17 | 17 |
|
18 |
| - |
19 | 18 | `next-on-netlify` is a utility for enabling server-side rendering in Next.js on Netlify. It wraps your application in a tiny compatibility layer, so that pages can use Netlify Functions to be server-side rendered.
|
20 | 19 |
|
21 |
| -**TL;DR: You can enable SSR in your Next.js applications with 3 simple steps, listed [here](#setup)!** |
| 20 | +- Build plugin [@netlify/plugin-nextjs](https://github.com/netlify/netlify-plugin-nextjs) |
| 21 | +- [Plugin npm package](https://www.npmjs.com/package/@netlify/plugin-nextjs) |
| 22 | + |
| 23 | +## Next on Netlify Roadmap |
| 24 | + |
| 25 | +The future of Next.js on Netlify is growing beyond `next-on-netlify`. The recommended path forward is to install [@netlify/plugin-nextjs](https://github.com/netlify/netlify-plugin-nextjs) - a build plugin released and supported by the team behind `next-on-netlify`. |
| 26 | + |
| 27 | +The plugin relies on `next-on-netlify` but offers a smoother experience, including: |
| 28 | + |
| 29 | +1. one-click, zero-config installation |
| 30 | +2. allowing custom functions and publish directories |
22 | 31 |
|
23 |
| -- Demo: https://next-on.netlify.com/ |
24 |
| -- Example repository: https://github.com/netlify-labs/next-on-netlify-demo |
| 32 | +See the [plugin's README](https://github.com/netlify/netlify-plugin-nextjs#readme) for more information. Our team's end goal is to make the Next.js on Netlify experience as seamless as possible. |
| 33 | + |
| 34 | +Note: since `next-on-netlify` will remain the primary source of logic for Next.js on Netlify, the existing `next-on-netlify` setup will continue to work for users who prefer manual installation and configuration. |
| 35 | + |
| 36 | +The plugin can be found on [npm here](https://www.npmjs.com/package/@netlify/plugin-nextjs). |
25 | 37 |
|
26 | 38 | ## Table of Contents
|
27 | 39 |
|
|
30 | 42 | - [1. Set Next.js target to serverless](#1-set-nextjs-target-to-serverless)
|
31 | 43 | - [2. Add postbuild hook](#2-add-postbuild-hook)
|
32 | 44 | - [3. Configure Netlify](#3-configure-netlify)
|
| 45 | +- [Demo](#demo) |
33 | 46 | - [Optional Extras](#optional-extras)
|
34 | 47 | - [Preview Locally](#preview-locally)
|
35 | 48 | - [Custom Netlify Redirects](#custom-netlify-redirects)
|
@@ -110,6 +123,11 @@ Note: `out_functions` and `out_publish` are hard-coded into next-on-netlify. The
|
110 | 123 |
|
111 | 124 | We're done. Let's deploy 🚀🚀🚀
|
112 | 125 |
|
| 126 | +## Demo |
| 127 | + |
| 128 | +- Site: https://next-on.netlify.com/ |
| 129 | +- Code: https://github.com/netlify-labs/next-on-netlify-demo |
| 130 | + |
113 | 131 | ## Optional Extras
|
114 | 132 |
|
115 | 133 | #### Preview Locally
|
|
0 commit comments