Netlify
Deploy your Nuxt Application to Netlify infrastructure.
Integration with Netlify is possible with zero configuration.
Setup
Nuxt will auto-detect that you are in a Netlify build environment and build an optimized version of your server.
For new sites, Netlify will detect that you are using Nuxt 3 and set the publish directory to dist
and build command to npm run build
.
If you want to add custom redirects, you can do so with routeRules
or by adding a _redirects
file to your public
directory.
Netlify Edge Functions
Set the following environment variable to run Nuxt on Edge Functions:
SERVER_PRESET=netlify_edge
On-demand Builders
On-demand Builders are serverless functions used to generate web content as needed that’s automatically cached on Netlify’s Edge CDN.
They enable you to build pages for your site when a user visits them for the first time and then cache them at the edge for subsequent visits until the next deployment.
Set the following environment variable to enable on-demand builders:
SERVER_PRESET=netlify_builder