graphql-engine/community/sample-apps/nuxtjs-postgres-graphql/nuxt.config.js
Praveen Durairaju 2791000475 update nuxtjs-postgres-graphql dependencies (close #3743) (#3765)
* update nuxt to 2.11

* fix issue 3743
2020-01-24 10:32:55 +05:30

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) {
}
}
}