Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

bluebeel/now-nuxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Nuxt core team has created an official builder.

I advise you to use this one. https://github.com/nuxt/now-builder

now-nuxt

A Now v2 Nuxt builder.

Usage

Add it to your now.json as:

{
  "builds": [
    { "src": "nuxt.config.js", "use": "@bluebeel/nuxt" }
  ]
}

You have to modify your nuxt.config.js file and customize the build property

build:  {
      filenames: {
        app: '[name].js',
        chunk: '[name].js'
      }
}

And don't forget to change the way the configuration is returned. The default nuxt.config.js is

export default {
  ...
}

Change it to

module.exports = () => {
  return { ... }
}

Example

Simple: https://nuxtjs-v2.now.sh/

Repository of the example.

Hackernews: https://nuxtjs-news-v2.now.sh

Repository of the example.

Releases

No releases published

Packages

No packages published