blob: ae9ac50e9d7313b75141758c0b0b07437c0fd812 [file] [log] [blame]
const express = require('express')
const path = require('path')
const app = express()
const SERVER_PORT = process.env.CONFIG_UI_PORT ?? 9000
app.use(express.static(path.join(__dirname, 'dist')))
app.get('/*', function (req, res) {
res.sendFile(path.join(__dirname, 'dist', 'index.html'))
})
app.listen(SERVER_PORT, () => console.log(`lake / config-ui => listening on port : ${SERVER_PORT}`))