mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
2791000475
* update nuxt to 2.11 * fix issue 3743
70 lines
1.3 KiB
JavaScript
70 lines
1.3 KiB
JavaScript
const pkg = require('./package')
|
|
|
|
|
|
module.exports = {
|
|
mode: 'universal',
|
|
|
|
/*
|
|
** Headers of the page
|
|
*/
|
|
head: {
|
|
title: pkg.name,
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{ hid: 'description', name: 'description', content: pkg.description }
|
|
],
|
|
link: [
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
]
|
|
},
|
|
|
|
/*
|
|
** Customize the progress-bar color
|
|
*/
|
|
loading: { color: '#fff' },
|
|
|
|
/*
|
|
** Global CSS
|
|
*/
|
|
css: [
|
|
],
|
|
|
|
/*
|
|
** Plugins to load before mounting the App
|
|
*/
|
|
plugins: [
|
|
],
|
|
|
|
/*
|
|
** Nuxt.js modules
|
|
*/
|
|
modules: ['@nuxtjs/apollo'],
|
|
// Give apollo module options
|
|
apollo: {
|
|
cookieAttributes: {
|
|
expires: 7, // optional, default: 7 (days)
|
|
},
|
|
includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder)
|
|
authenticationType: 'Bearer', // optional, default: 'Bearer'
|
|
// optional
|
|
errorHandler: '~/plugins/apollo-error-handler.js',
|
|
// required
|
|
clientConfigs: {
|
|
default: '~/apollo/clientConfig.js'
|
|
}
|
|
},
|
|
|
|
/*
|
|
** Build configuration
|
|
*/
|
|
build: {
|
|
/*
|
|
** You can extend webpack config here
|
|
*/
|
|
extend(config, ctx) {
|
|
|
|
}
|
|
}
|
|
}
|