Skip to content

Commit 0f0c71b

Browse files
committed
Clarify usage of VUE_APP_OBLYK_APP_HOST
1 parent b309a6a commit 0f0c71b

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
VUE_APP_OBLYK_API_URL='http://localhost:3000'
22
VUE_APP_OBLYK_APP_URL='http://localhost:4500'
3+
VUE_APP_OBLYK_APP_HOST='localhost'
34
VUE_APP_OBLYK_APP_PORT=4500
45
VUE_APP_OBLYK_API_CABLE_URL='ws://localhost:3000/cable'
56
VUE_APP_OBLYK_API_ACCESS_TOKEN='oblyk-api-access-token'

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ Install npm dependencies:
5555
npm install
5656
```
5757

58+
Set VUE_APP_OBLYK_APP_HOST in the .env file:
59+
60+
```shell
61+
echo "VUE_APP_OBLYK_APP_HOST='localhost'" >> .env
62+
```
63+
5864
Start the development server
5965

6066
```shell

nuxt.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require('dotenv').config()
44
export default {
55
server: {
66
port: process.env.VUE_APP_OBLYK_APP_PORT,
7-
host: process.env.VUE_APP_OBLYK_APP_HOST ?? 'localhost'
7+
host: process.env.VUE_APP_OBLYK_APP_HOST
88
},
99

1010
// Global page headers: https://go.nuxtjs.dev/config-head

0 commit comments

Comments
 (0)