c03d4931de
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
870 B
870 B
HTTP2 server example
This example shows the most basic example using an HTTP2 server. We have 2 pages: pages/index.js
and pages/about.js
. The former responds to /
requests and the latter to /about
. Using next/link
you can add hyperlinks between them with universal routing capabilities.
How to use
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-http2 with-http2-app
# or
yarn create next-app --example with-http2 with-http2-app
Deploy it to the cloud with Vercel (Documentation).