Deploy

Vercel

How to deploy Nuxt Content to Vercel.

Nuxt Content uses Nuxt deployment presets to adjust the build process for different hosting platforms. To deploy your Nuxt Content to Vercel, you can use the vercel preset.

Note that you don't need to change project configuration to deploy on Vercel. Nuxt and Nuxt Content automatically detect the vercel environment and adjust build configuration for you.

You can either use Vercel git integration or Vercel CLI.

Database

Unfortunately sqlite database is not supported in Vercel environment and you should use another database. You can simply create a Vercel Postgres database and use Content Module's Postgres adapter.

Checkout official documentation to create a Vercel Postgress database and connect it to your Vercel project. Nuxt Content will automatically detect connection url from environment variables in production.

nuxt.config.ts
export default defineNuxtConfig({
  content: {
    database: {
      type: 'postgres',
      url: process.env.POSTGRES_URL,
      /* Other options for `pg` */
    }
  }
})