mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
68 lines
1.4 KiB
JavaScript
68 lines
1.4 KiB
JavaScript
import defaultConfig from './nuxt.config.js'
|
|
|
|
const { css, styleResources, manifest, build, mode, buildModules } = defaultConfig
|
|
|
|
const CONFIG = require('./config').default // we need to use require since this is only evaluated at compile time.
|
|
|
|
export default {
|
|
mode,
|
|
|
|
env: CONFIG,
|
|
|
|
head: {
|
|
title: manifest.name,
|
|
meta: [
|
|
{
|
|
charset: 'utf-8',
|
|
},
|
|
{
|
|
name: 'viewport',
|
|
content: 'initial-scale=1',
|
|
},
|
|
{
|
|
hid: 'description',
|
|
name: 'description',
|
|
content: `Maintenance page for ${manifest.name}`,
|
|
},
|
|
],
|
|
link: [
|
|
{
|
|
rel: 'icon',
|
|
type: 'image/x-icon',
|
|
href: '/favicon.ico',
|
|
},
|
|
],
|
|
},
|
|
|
|
css,
|
|
styleResources,
|
|
|
|
plugins: [
|
|
{ src: '~/plugins/base-components.js', ssr: true },
|
|
{ src: `~/plugins/styleguide.js`, ssr: true },
|
|
{ src: '~/plugins/i18n.js', ssr: true },
|
|
{ src: '~/plugins/v-tooltip.js', ssr: false },
|
|
],
|
|
|
|
router: {
|
|
extendRoutes(routes, resolve) {
|
|
routes.push({
|
|
name: 'maintenance',
|
|
path: '*',
|
|
component: resolve(__dirname, 'pages/index.vue'),
|
|
})
|
|
},
|
|
},
|
|
|
|
modules: [
|
|
['@nuxtjs/dotenv', { only: Object.keys(CONFIG) }],
|
|
['nuxt-env', { keys: Object.keys(CONFIG) }],
|
|
'cookie-universal-nuxt',
|
|
'@nuxtjs/style-resources',
|
|
],
|
|
|
|
buildModules,
|
|
manifest,
|
|
build,
|
|
}
|