Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment with @nuxtjs/now-builder? #168

Closed
paolomolo opened this issue Jun 20, 2020 · 2 comments
Closed

Deployment with @nuxtjs/now-builder? #168

paolomolo opened this issue Jun 20, 2020 · 2 comments
Labels
question Further information is requested

Comments

@paolomolo
Copy link

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

@paolomolo paolomolo added the question Further information is requested label Jun 20, 2020
@hunterliu1003
Copy link
Contributor

hunterliu1003 commented Jun 22, 2020

Hi @paolomolo

Please try this:

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

@paolomolo
Copy link
Author

Works like a charm! Thanks @hunterliu1003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants