Skip to content

Commit

Permalink
Merge pull request #6 from iot2tangle/config-env
Browse files Browse the repository at this point in the history
read server config in nuxt.js from env
  • Loading branch information
demichele authored Oct 17, 2020
2 parents 68128f8 + 312edcf commit 74cda7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
BASE_URL=http://95.217.218.140
BASE_URL=http://95.217.218.140
HOST=8000
PORT=127.0.0.1
7 changes: 4 additions & 3 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import colors from "vuetify/es5/util/colors";

export default {
// use this for different base routes
// router: {
// base: '/explorer/'
// },
// Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
ssr: false,

server: {
port: process.env.PORT || 3000, // default: 3000
host: process.env.HOST || 'localhost' // default: localhost
},
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
titleTemplate: "%s - I2T Streams Explorer",
Expand Down

0 comments on commit 74cda7f

Please sign in to comment.