mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
691f21c683
* fix(vue-app): handle missing payloads on full static Fixes #7717 * chore: rename routesManifest to manifest * chore: remove console.log * chore(vue-app): don't have staticAssetsBase if undefined * chore: add manifest option * test: update snapshot * chore: use foundRoute to avoid multiple vars name Co-authored-by: Pooya Parsa <pyapar@gmail.com> Co-authored-by: Daniel Roe <daniel@roe.dev> |
||
---|---|---|
.. | ||
bin | ||
src | ||
package.js | ||
package.json | ||
README.md |
nuxt-start
Start Nuxt.js Application in production mode.
Installation
npm install --save nuxt-start
Add/Update your "start" script into your package.json
:
{
"scripts": {
"start": "nuxt-start"
}
}
Usage
nuxt-start <dir> -p <port number> -H <hostname> -c <config file>
Programmatic Usage
const { Nuxt } = require('nuxt-start')
// Require nuxt config
const config = require('./nuxt.config.js')
// Create a new nuxt instance (config needs dev: false)
const nuxt = new Nuxt(config)
// Start nuxt.js server
nuxt.listen(3000) // nuxt.listen(port, host)
// Or use `nuxt.render` as an express middleware