Skip to content

Commit b609b49

Browse files
committed
readme(image)
1 parent d924f61 commit b609b49

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
APP_ENV="production"
2-
API_ONLY=false
2+
API_ONLY=
33

44
API_PROTOCOL="http"
55
API_HOST="localhost"

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ api.put('/api/vh/:id/disable', async (req, res) => {
131131

132132
api.listen(config.api.port, () => console.log(`API started on ${config.api.protocol}://${config.api.host}:${config.api.port}`))
133133

134-
if (env === 'production' && process.env.API_ONLY === false) {
134+
if (env === 'production' && process.env.API_ONLY != true) {
135135
const app = express()
136136
app.use(express.static(__dirname + '/dist/'));
137137
app.get('/', (req, res) => res.sendFile(__dirname + '/dist/index.html'))

static/images/pic1.png

4.48 KB
Loading

static/images/pic2.png

13.5 KB
Loading

0 commit comments

Comments
 (0)