diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 06bad0a30..bc32e2f71 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -25,6 +25,7 @@ RUN NODE_ENV=production yarn run build FROM base as production RUN yarn install --production=true --frozen-lockfile --non-interactive --no-cache COPY --from=build-and-test ./webapp/.nuxt ./.nuxt +COPY --from=build-and-test ./webapp/constants ./constants COPY --from=build-and-test ./webapp/static ./static COPY nuxt.config.js . COPY locales locales diff --git a/webapp/Dockerfile.maintenance b/webapp/Dockerfile.maintenance index 0702135e6..14e5ec4d3 100644 --- a/webapp/Dockerfile.maintenance +++ b/webapp/Dockerfile.maintenance @@ -24,6 +24,7 @@ COPY locales locales COPY mixins mixins COPY plugins/i18n.js plugins/v-tooltip.js plugins/styleguide.js plugins/ COPY static static +COPY constants constants COPY nuxt.config.js nuxt.config.js # this will also ovewrite the existing package.json diff --git a/webapp/constants/manifest.js b/webapp/constants/manifest.js new file mode 100644 index 000000000..ffe47f895 --- /dev/null +++ b/webapp/constants/manifest.js @@ -0,0 +1,7 @@ +export default { + name: 'Human Connection', + short_name: 'HC', + description: 'The free and open source social network for active citizenship', + theme_color: '#17b53f', + lang: 'en', +} diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index 960785c0a..ca31f25a9 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -3,6 +3,8 @@ import dotenv from 'dotenv' dotenv.config() // we want to synchronize @nuxt-dotenv and nuxt-env +const manifest = require('./constants/manifest.js') + const pkg = require('./package') export const envWhitelist = [ 'NODE_ENV', @@ -236,14 +238,7 @@ export default { config: additionalSentryConfig, }, - manifest: { - name: 'Human Connection', - short_name: 'HC', - homepage_url: 'https://human-connection.org/', - description: 'The free and open source social network for active citizenship', - theme_color: '#17b53f', - lang: 'en', - }, + manifest, /* ** Build configuration