Content: Deployment with @nuxtjs/now-builder?

Created on 20 Jun 2020  路  2Comments  路  Source: nuxt/content


I have a content project working great locally however nuxt-content is not displayed when deploying to Vercel with @nuxtjs/now-builder.

Has anyone worked out a way to get content to work with the now-builder module?
Is there a easy config for the now.json? Or am I looking at it the wrong way?

I'm using the default now.json config at the moment:

{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/now-builder",
      "config": {
        "serverFiles": ["package.json"]
      }
    }
  ]
}

Thanks

question

Most helpful comment

Hi @paolomolo

Please try this:

{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/now-builder",
      "config": {
        "serverFiles": [
          "content/**"
        ]
      }
    }
  ]
}

All 2 comments

Hi @paolomolo

Please try this:

{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/now-builder",
      "config": {
        "serverFiles": [
          "content/**"
        ]
      }
    }
  ]
}

Works like a charm! Thanks @hunterliu1003

Was this page helpful?
0 / 5 - 0 ratings