-
David Mendez authored0900ffb4
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
nuxt.config.js 2.80 KiB
import colors from 'vuetify/es5/util/colors'
require('dotenv').config({ path: process.env.ENV_FILE_PATH })
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
titleTemplate: '%s - eubopen-web',
title: 'eubopen-web',
htmlAttrs: {
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
env: {
esProxyBaseUrl:
process.env.ES_PROXY_BASE_URL ||
'https://wwwdev.ebi.ac.uk/chembl/interface_api/es_proxy',
delayedJobsBaseUrl:
process.env.DELAYED_JOBS_BASE_URL ||
'https://wwwdev.ebi.ac.uk/chembl/interface_api/delayed_jobs',
chemblWSBaseUrl:
process.env.CHEMBL_WS_BASE_URL ||
'https://wwwdev.ebi.ac.uk/chembl/api/data',
fallbackIMGsBaseUrl:
process.env.FALLBACK_IMGS_BASE_URL ||
'https://wwwdev.ebi.ac.uk/chembl/k8s/static/chembl/img',
delayedJobsIgnoreCache: process.env.DELAYED_JOBS_IGNORE_CACHE === 'true',
esIndexPrefix: process.env.ES_INDEX_PREFIX || 'chembl_',
djJobStatusCheckIntervalMillis: process.env
.DJ_JOB_STATUS_CHECK_INTERVAL_MILLIS
? parseInt(process.env.DJ_JOB_STATUS_CHECK_INTERVAL_MILLIS)
: 2000,
compoundReportCardsBaseUrl:
process.env.COMPOUND_REPORT_CARDS_BASE_URL || '/compound',
targetReportCardsBaseUrl:
process.env.TARGET_REPORT_CARDS_BASE_URL || '/target',
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [{ src: '~/plugins/vue-apexchart.js', ssr: false }],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
// https://go.nuxtjs.dev/vuetify
'@nuxtjs/vuetify',
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
customVariables: ['~/assets/variables.scss'],
theme: {
dark: false,
themes: {
light: {
primary: '#113a70',
accent: '#e4eaf3',
secondary: '#9dbfdc',
info: '#96cfbd',
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
},
},
},
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {},
}