73 lines
1.5 KiB
JavaScript
73 lines
1.5 KiB
JavaScript
require('dotenv').config()
|
|
export default {
|
|
mode: 'universal',
|
|
/*
|
|
** Headers of the page
|
|
*/
|
|
head: {
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
],
|
|
link: [
|
|
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
]
|
|
},
|
|
/*
|
|
** Customize the progress-bar color
|
|
*/
|
|
loading: { color: '#00d1b2' },
|
|
/*
|
|
** Global CSS
|
|
*/
|
|
css: [
|
|
'~/assets/bulma.scss'
|
|
],
|
|
/*
|
|
** Plugins to load before mounting the App
|
|
*/
|
|
plugins: [{ src: '~/plugins/localStorage.js', ssr: false }],
|
|
/*
|
|
** Nuxt.js dev-modules
|
|
*/
|
|
buildModules: [
|
|
// Doc: https://github.com/nuxt-community/eslint-module
|
|
'@nuxtjs/eslint-module'
|
|
],
|
|
/*
|
|
** Nuxt.js modules
|
|
*/
|
|
modules: [
|
|
// Doc: https://axios.nuxtjs.org/usage
|
|
'@nuxtjs/axios',
|
|
'nuxt-shopify',
|
|
'nuxt-buefy'
|
|
],
|
|
/*
|
|
** Axios module configuration
|
|
** See https://axios.nuxtjs.org/options
|
|
*/
|
|
axios: {
|
|
baseURL: process.env.API_URL,
|
|
headers: {
|
|
'X-Shopify-Storefront-Access-Token': process.env.STOREFRONT_ACCESS_TOKEN,
|
|
Accept: 'application/json'
|
|
}
|
|
},
|
|
shopify: {
|
|
domain: process.env.DOMAIN, // your shopify domain
|
|
storefrontAccessToken: process.env.STOREFRONT_ACCESS_TOKEN// your shopify storefront access token
|
|
},
|
|
/*
|
|
** Build configuration
|
|
*/
|
|
build: {
|
|
transpile: [],
|
|
/*
|
|
** You can extend webpack config here
|
|
*/
|
|
extend (config, ctx) {
|
|
}
|
|
}
|
|
}
|