mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
c3b6ba3bf0
add nuxtjs-postgres-graphql to sample apps
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: {
|
|
tokenExpires: 10, // optional, default: 7 (days)
|
|
includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder)
|
|
authenticationType: 'Basic', // optional, default: 'Bearer'
|
|
// optional
|
|
errorHandler (error) {
|
|
console.log('%cError', 'background: red; color: white; padding: 2px 4px; border-radius: 3px; font-weight: bold;', error.message)
|
|
},
|
|
// required
|
|
clientConfigs: {
|
|
default: '~/apollo/clientConfig.js'
|
|
}
|
|
},
|
|
|
|
/*
|
|
** Build configuration
|
|
*/
|
|
build: {
|
|
/*
|
|
** You can extend webpack config here
|
|
*/
|
|
extend(config, ctx) {
|
|
|
|
}
|
|
}
|
|
}
|