From ad14d7439ea86126a1ea90844ecb31855e15c001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 18 Jan 2017 18:04:41 +0100 Subject: [PATCH 1/5] Update example --- examples/with-sockets/nuxt.config.js | 9 +++++++++ examples/with-sockets/pages/index.vue | 13 ++++++++++++- examples/with-sockets/plugins/socket.io.js | 2 +- examples/with-sockets/server.js | 6 ++---- 4 files changed, 24 insertions(+), 6 deletions(-) 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 @@