1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-14 17:18:33 +00:00
bramw_baserow/web-frontend/config/nuxt.config.base.js
2020-03-24 20:33:05 +01:00

78 lines
1.5 KiB
JavaScript

export default {
mode: 'universal',
head: {
title: 'Baserow',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [
{
rel: 'icon',
type: 'image/png',
href: '/img/favicon_16.png',
sizes: '16x16'
},
{
rel: 'icon',
type: 'image/png',
href: '/img/favicon_32.png',
sizes: '32x32'
},
{
rel: 'icon',
type: 'image/png',
href: '/img/favicon_48.png',
sizes: '64x64'
},
{
rel: 'icon',
type: 'image/png',
href: '/img/favicon_192.png',
sizes: '192x192'
}
]
},
/**
* Customize the progress-bar color
*/
loading: { color: '#fff' },
/**
* Global CSS
*/
css: ['@/assets/scss/default.scss'],
/**
* Plugins to load before mounting the App
*/
plugins: [
{ src: '@/plugins/global.js' },
{ src: '@/plugins/client.js' },
{ src: '@/plugins/auth.js' },
{ src: '@/plugins/vuelidate.js' }
],
/**
* Nuxt.js modules
*/
modules: [
'@nuxtjs/axios',
'cookie-universal-nuxt',
'@/modules/database/module.js'
],
router: {
middleware: ['authentication']
},
env: {
// The API base url, this will be prepended to the urls of the remote calls.
baseUrl: 'http://backend:8000/api/v0',
// If the API base url must different at the browser side it can be changed
// here.
publicBaseUrl: 'http://localhost:8000/api/v0'
}
}