-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
59 lines (56 loc) · 1.57 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
let config = require('config')
if (process.argv.slice(-1)[0] === 'generate') {
const nuxtConfigInject = require('@koumoul/nuxt-config-inject')
config = nuxtConfigInject.prepare(config)
}
const locales = ['en', 'fr']
module.exports = {
ssr: false,
target: 'static',
components: true,
srcDir: 'public/',
telemetry: false,
build: {
publicPath: '/_dev-server-nuxt'
},
modules: ['@nuxtjs/axios', ['@nuxtjs/i18n', {
seo: false,
locales,
defaultLocale: 'en',
vueI18nLoader: true,
strategy: 'no_prefix',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_lang'
},
vueI18n: {
fallbackLocale: 'en'
}
}]],
axios: {
browserBaseURL: 'http://localhost:5888/data-fair'
},
buildModules: ['@nuxtjs/vuetify'],
vuetify: {
theme: {
themes: {
light: {
primary: '#1E88E5', // colors.blue.darken1
accent: '#F57C00', // colors.orange.darken2
warning: '#F57C00' // colors.orange.darken2
}
}
}
},
env: { app: config.app, dataFair: config.dataFair, iframeLog: config.iframeLog, locales },
head: {
title: 'DataFair - Dev server',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'application', name: 'application-name', content: 'DataFair - Dev server' },
{ hid: 'description', name: 'description', content: 'A development server for optimal development experience of data-fair applications.' },
{ hid: 'robots', name: 'robots', content: 'noindex' }
]
}
}