BASE

Next.js

Next.js

Web framework / library · Free

A React framework with routing, server rendering, and request handlers for websites and full web applications.

Also known as: vercel/next.js; next.js; nextjs; react-framework

Resource illustration: Next.js

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Compute, your own hosting, and external services are paid for separately if selected.

Access and limitations

Code and local use under MIT. Compute, your own hosting, and external services are paid for separately if selected.

Use cases

  • Create a page with server data and a route
  • Connect data loading and a handler for the required HTTP scenario

Example workflow

A possible workflow; this is not a report of hands-on testing.

Create a route with a list and client-side filter.

Before you start

  • A record source and page URL.
  • Data loading rules and errors.

Steps

  1. Create a route and server-side list loading.
  2. Isolate the interactive filter in a client component.
  3. Check the production build, direct URL, and data source failure.

Check your result

  • Source secrets do not enter client code.
  • Errors and an empty list have clear displays.

Choosing Next.js

Build a React application with routing and separate server and client components.

Choose this when

  • Pages with server data and interactive areas are needed.
  • The application needs organization around routes and layouts.

Consider alternatives when

  • Astro suits a mainly content-focused website; Vite suits a standalone frontend without a built-in full-stack structure.

Requirements

  • A React project on Next.js; the hosting environment must support the features in use.

Things to consider

  • Server and static hosting methods have different limitations.
  • Development-mode checks do not confirm production behavior.

Frequently asked questions

Does every component run in the browser?

No. App Router uses React server capabilities; a client boundary is needed for the corresponding interactivity.

Related tasks and approaches

  • React

    Foundation: application components and state.

  • Astro

    Alternative: HTML and separate islands for a content website.

License

MIT: code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Next.js
  • web
  • Development

Sources

Other resources