Skip to content

Problem deploying on Vercel and better-sqlite3 #3424

@ValentinOsvaldo

Description

@ValentinOsvaldo

I'm using @nuxt/content version 3.6.0, and deploying my Nuxt app to Vercel.
I configured the content.database to use PostgreSQL hosted on Neon.

However, during deployment I encounter the following error:

Image

Here is my relevant nuxt.config.ts snippet:

export default defineNuxtConfig({
  content: {
    database: {
      type: 'postgres',
      url: process.env.POSTGRES_URL!,
    },
    preview: {
      api: 'https://api.nuxt.studio',
      dev: true,
      gitInfo: {
        name: 'valen.vue',
        owner: 'ValentinOsvaldo',
        url: 'https://github.com/ValentinOsvaldo/valen.vue.git',
      },
    },
    renderer: {
      anchorLinks: false,
    },
  }
})

I try to create a new deploy but the error persists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions