mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-01-02 23:15:48 +01:00
8472f27ec5
GitOrigin-RevId: ddf02e70d2827c048db49b687ebbcdcc67807ca6
11 lines
405 B
JavaScript
11 lines
405 B
JavaScript
const { Nuxt } = require('nuxt')
|
|
const app = require('express')()
|
|
const config = require('./{config_file}')
|
|
const nuxtConfig = Object.assign(require('./{nuxt_config_file}'), { dev: false, _start: true })
|
|
const nuxt = new Nuxt(nuxtConfig)
|
|
|
|
app.use(nuxt.render)
|
|
app.listen(config.application.port, config.application.host, () => {
|
|
console.log(`Server started and listen on ${config.application.port}`)
|
|
})
|