text: /*
   ** This is for GitHub pages
   */
  const routerBase =
    process.env.DEPLOY_ENV === 'GH_PAGES'
      ? {
          router: {
            base: '/admin-one-nuxt/',
          },
        }
      : {}
  
  export default {
    /*
     ** Concat router base setting
     */
    ...routerBase,
    /*
     ** Nuxt rendering mode
     ** See https://nuxtjs.org/api/configuration-mode
     */
    mode: 'universal',
    /*
     ** Nuxt target
     ** See https://nuxtjs.org/api/configuration-target
     */
    target: 'static',
    /*
     ** Headers of the page
     ** See https://nuxtjs.org/api/configuration-head
     */
    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: 'dns-prefetch', href: 'https://fonts.gstatic.com' },
        {
          rel: 'stylesheet',
          type: 'text/css',
          href: 'https://fonts.googleapis.com/css?family=Nunito',
        },
        {
          rel: 'stylesheet',
          type: 'text/css',
          href:
            'https://cdn.materialdesignicons.com/4.9.95/css/materialdesignicons.min.css',
        },
      ],
    },
    /*
     ** Customize the progress-bar color
     */
    loading: { color: '#fff' },
    /*
     ** Global CSS
     */
    css: ['./assets/scss/main.scss'],
    /*
     ** Plugins to load before mounting the App
     ** https://nuxtjs.org/guide/plugins
     */
    plugins: [{ src: '~/plugins/after-each.js', mode: 'client' }],
    /*
     ** Auto import components
     ** See https://nuxtjs.org/api/configuration-components
     */
    components: false,
    /*
     ** Nuxt.js dev-modules
     */
    buildModules: [
      // Doc: https://github.com/nuxt-community/eslint-module
      '@nuxtjs/eslint-module',
    ],
    /*
     ** Nuxt.js modules
     */
    modules: [
      // Doc: https://buefy.github.io/#/documentation
      ['nuxt-buefy', { materialDesignIcons: false }],
      // Doc: https://axios.nuxtjs.org/usage
      '@nuxtjs/axios',
      '@nuxtjs/pwa',
    ],
    /*
     ** Axios module configuration
     ** See https://axios.nuxtjs.org/options
     */
    axios: {
      // Local //
      baseURL: 'http://localhost:8888',
      // Product //
      // baseURL: 'http://10.1.2.32:8080',
    },
    /*
     ** Build configuration
     ** See https://nuxtjs.org/api/configuration-build/
     */
    build: {
      /*
       ** You can extend webpack config here
       */
      extend(config, ctx) {
        if (!config.externals) {
          config.externals = {}
        }
  
        // Remove moment.js from chart.js
        // https://www.chartjs.org/docs/latest/getting-started/integration.html#bundlers-webpack-rollup-etc
        config.externals.moment = 'moment'
      },
    },
  }
  