Skip to content
Dashboard

Improved support for Nuxt on Vercel

Developer Advocate

Nuxt applications can now take advantage of Vercel KV, ISR, and more.

Link to headingVercel KV integration with Nitro Storage

nuxt.config.ts
export default defineNuxtConfig({
nitro: {
storage: {
data: { driver: 'vercelKV' }
}
}
})

export default eventHandler(async (event) => {
const storage = useStorage('data');
await storage.setItem('userId', 'id');
return {
id: await dataStorage.getItem('userId'),
};
});

Link to headingStatic and ISR support for Nuxt

nuxt.config.js
export default defineNuxtConfig({
routeRules: {
// all routes will be background revalidated (ISR) at most every 60 seconds
'/**': { isr: 60 },
// this page will be generated on demand and cached permanently
'/static': { isr: true }
},
});

Nuxt's route rules enable you to opt different routes into the optimal rendering strategy.

Link to headingPartnering with Nuxt

We love working with Vercel. They share our values of great DX, zero-configuration and best practices built-in. I'm also really pleased to see the new offerings Vercel have been launching this week. I'm confident they will make Nuxt users' lives easier and better.
Daniel Roe

Link to headingTry Nuxt on Vercel

See how to seamlessly integrate Vercel KV, a serverless Redis solution, with Nuxt.js using Nitro storage.