Skip to content

Commit

Permalink
fixed default client tentacle port to use the window location port
Browse files Browse the repository at this point in the history
  • Loading branch information
joyja committed Jun 6, 2020
1 parent 2df95a4 commit 9ea8d12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
tentacleServerUrl: process.env.TENTACLE_SERVER_URL,
tentacleClientSecure: process.env.TENTACLE_CLIENT_SECURE || false,
tentacleClientHost: process.env.TENTACLE_CLIENT_HOST,
tentacleClientPort: process.env.TENTACLE_CLIENT_PORT || 4000,
tentacleClientPort: process.env.TENTACLE_CLIENT_PORT,
tentacleClientUrl: process.env.TENTACLE_CLIENT_URL,
},
mode: 'universal',
Expand Down
2 changes: 2 additions & 0 deletions plugins/apollo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export default function (context) {
port: process.env.tentacleClientPort || window.location.port,
url: process.env.tentacleClientUrl || '/api/',
}
console.log(process.env.tentacleClientPort)
console.log(window.location.port)
} else {
config = {
httpPrefix: process.env.tentacleServerSecure ? 'https' : 'http',
Expand Down

0 comments on commit 9ea8d12

Please sign in to comment.