Parameterize manifest

This commit is contained in:
roschaefer 2020-06-05 17:37:16 +02:00
parent 193f977863
commit 37b3014ac7
4 changed files with 12 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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',
}

View File

@ -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