Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Netlify reference template for adding Forms, Functions, and Redirects to Next.js apps.
The Next.js Toolbox Template is a Netlify-authored boilerplate for Next.js v14 that shows how to integrate Netlify Forms, Netlify Functions, and Redirect rules into a real application. Built from create-next-app, it gives you a working feedback form, a serverless joke function, and a netlify.toml that you can copy into your own projects.
The Next.js Toolbox Template is a starter project maintained by Netlify under the netlify-templates GitHub organization. It takes a standard Next.js v14 application and adds concrete examples of Netlify's platform features: a form that posts to Netlify Forms, a JavaScript function served from netlify/functions, and redirect rules configured in netlify.toml. The template is designed as a reference so developers can see exactly how these integrations work together and lift the patterns into their own code.
Clone the repository or click the Deploy to Netlify button to get your own copy. Install dependencies with npm install, then run npm run dev for local development or netlify dev to test functions and redirects against the Netlify environment. When you push to a connected repository, Netlify reads netlify.toml to determine build settings and deploys the resulting site to a live URL.
Yes, the template is open source under the netlify-templates GitHub organization and can be used for any project. The only cost is whatever Netlify charges for hosting your deployed site, which depends on the plan you choose.
The template demonstrates three Netlify features: Netlify Forms (a feedback form with a custom success route and honeypot), Netlify Functions (a joke endpoint in netlify/functions), and redirect rules in netlify.toml that map /api paths to functions.
Click the Deploy to Netlify button to create a new repository from the template and start deployment automatically. Alternatively, clone the repository, install the Netlify CLI with npm install netlify-cli -g, and run netlify init to set up continuous deployment.
Yes, it includes Cypress end-to-end tests that run during the Netlify build via the netlify-plugin-cypress plugin, and Renovate to keep dependencies up to date. Both can be removed by deleting the plugin configuration, the cypress folder, and the Renovate file.
