123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- export default {
- mode: 'spa',
- router: {
- middleware: 'check-auth'
- },
- /*
- ** Headers of the page
- */
- head: {
- title: process.env.npm_package_name || '',
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
- ],
- link: [
- { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
- { rel: 'stylecss', href: '//fonts.googleapis.com/css?family=Roboto:400,500,700,400italic|Material+Icons' }
- ]
- },
- /*
- ** Customize the progress-bar color
- */
- loading: { color: '#9ccc65', height: '10px' },
- /*
- ** Global CSS
- */
- css: [
- { src: 'vue-material/dist/vue-material.min.css', lang: 'css' },
- { src: '~/assets/theme.scss', lang: 'scss' }
- ],
- /*
- ** Plugins to load before mounting the App
- */
- plugins: [
- { src: '~/plugins/vue-material' },
- { src: '~/plugins/axios' },
- { src: '~/plugins/firestore' },
- { src: '~/plugins/time-filters' }
- ],
- /*
- ** 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',
- '@nuxtjs/proxy'
- ],
- /*
- ** Axios module configuration
- ** See https://axios.nuxtjs.org/options
- */
- axios: {
- credentials: true,
- proxy: true
- },
- proxy: {
- '/api/': {
- target: 'https://newsapi.org/v2/',
- pathRewrite: { '^/api/': '' }
- },
- '/register/': {
- target: 'https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyCYndjau99Ugi0BhT5THKDKhR5XTCv_zw4',
- pathRewrite: { '^/register/': '' }
- },
- '/login/': {
- target: 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=AIzaSyCYndjau99Ugi0BhT5THKDKhR5XTCv_zw4',
- pathRewrite: { '^/login/': '' }
- }
- },
- env: {
- NEWS_API_KEY: '2d199fb5095b44869cb4311a7a0366d2'
- },
- /*
- ** Build configuration
- */
- build: {
- /*
- ** You can extend webpack config here
- */
- extend (config, ctx) {
- if (ctx.dev && ctx.isClient) {
- config.module.rules.push({
- enforce: 'pre',
- test: /\.(js|vue)$/,
- loader: 'eslint-loader',
- exclude: /(node_modules)/,
- options: {
- fix: true
- }
- })
- }
- }
- }
- }
|