diff --git a/docker-compose.yml b/docker-compose.yml index ca66217c2..93e80d9c1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ services: networks: - hc-network environment: + - NUXT_BUILD=.nuxt-dist - HOST=0.0.0.0 - GRAPHQL_URI=http://backend:4000 - MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.bZ8KK9l70omjXbEkkbHGsQ" diff --git a/webapp/.gitignore b/webapp/.gitignore index f8c980f7c..bc179d78a 100644 --- a/webapp/.gitignore +++ b/webapp/.gitignore @@ -61,6 +61,8 @@ typings/ # nuxt.js build output .nuxt +# also the build output in docker container +.nuxt-dist # Nuxt generate dist diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index cb3a3c643..7ea1038a9 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -10,7 +10,10 @@ const styleguideStyles = process.env.STYLEGUIDE_DEV ] : '@human-connection/styleguide/dist/shared.scss' +const buildDir = process.env.NUXT_BUILD || '.nuxt' + module.exports = { + buildDir, mode: 'universal', dev: dev,