diff --git a/examples/with-sockets/nuxt.config.js b/examples/with-sockets/nuxt.config.js index 7d11af313f..7ca9c60b1f 100644 --- a/examples/with-sockets/nuxt.config.js +++ b/examples/with-sockets/nuxt.config.js @@ -1,5 +1,14 @@ module.exports = { build: { vendor: ['socket.io-client'] + }, + head: { + meta: [ + { charset: 'utf-8' }, + { name: 'viewport', content: 'width=device-width, initial-scale=1' } + ] + }, + env: { + HOST_URL: process.env.HOST_URL || 'http://localhost:3000' } } diff --git a/examples/with-sockets/pages/index.vue b/examples/with-sockets/pages/index.vue index 78e126b805..857c101360 100644 --- a/examples/with-sockets/pages/index.vue +++ b/examples/with-sockets/pages/index.vue @@ -3,7 +3,7 @@