Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/vreg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/vreg/nuxt.config.js
import 'dotenv/config'
import path from 'path'
import fs from 'fs'


const nuxtConfig = {
  // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
  // ssr: false,

  target: 'static',
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: process.env.meta_title || 'V-REG',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [
      {charset: 'utf-8'},
      {name: 'viewport', content: 'width=device-width, initial-scale=1'},
      {hid: 'description', name: 'description', content: ''},
      {name: 'format-detection', content: 'telephone=no'}
    ],
    link: [
      {rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
    ],
    script: [
      {src: 'https://js.stripe.com/v3'},
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    '~/static/css/common.css'
  ],

  layoutTransition: 'layout',

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    {src: '~/plugins/helpers.js', ssr: true},
    {src: '~/plugins/validationRules.js', ssr: false},
    {src: '~/plugins/form.js', ssr: true},
    {src: '~/plugins/vMask.js', ssr: false},
    {src: '~/plugins/common.js', ssr: true},
    {src: '~/plugins/addressLookup.js', ssr: false},
    {src: '~/plugins/vueSignaturePad.js', ssr: false},
    {src: '~/plugins/eventBusInject.js', ssr: false},
    {src: '~/plugins/localStorage.js', ssr: false},
    {src: '~/plugins/OrdersCalculations.js', ssr: true},
    {src: '~/plugins/payments.js', ssr: false},
    {src: '~/plugins/carousel.js', ssr: false},
    {src: '~/plugins/v-idle.js', ssr: false},
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: false,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
    '@nuxtjs/moment',
    '@nuxtjs/gtm',
    '@nuxtjs/fontawesome',
    '@nuxtjs/toast'
  ],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    // https://go.nuxtjs.dev/axios
    '@nuxtjs/axios',
    '@nuxtjs/dotenv',
    // https://go.nuxtjs.dev/bootstrap
    ['bootstrap-vue/nuxt', {icons: false}],
  ],
  bootstrapVue: {
    componentPlugins: ['ModalPlugin'],
    directivePlugins: [],
    components: [
      'BModal', 'BCollapse', 'BFormDatepicker',
      'BNavItemDropdown', 'BDropdownItem', 'BButton',
      'BCollapse', 'BSpinner', 'BOverlay'
    ],
    directives: ['VBModal', 'VBTooltip', 'VBToggle'],
    icons: false
  },

  // Axios module configuration: https://go.nuxtjs.dev/config-axios
  axios: {
    baseURL: process.env.api_url,

    headers: {
      'Content-Type': 'application/json',
      'X-Requested-With': 'XMLHttpRequest',
      'Access-Control-Allow-Origin': '*',
      'Cache-Control': 'no-cache'
    }
  },

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    babel: {compact: true},
  },

  fontawesome: {
    component: 'fa',
    icons: {
      solid: ['faEdit', 'faSave', 'faSpinner', 'faLock', 'faQuestionCircle', 'faExclamationCircle']
    }
  },
  gtm: {
    id: process.env.gtm_id,
    enabled: true,
    pageTracking: true,
    respectDoNotTrack: false,
    scriptDefer: true,
  },
  toast: {
    position: 'bottom-right',
    duration: 3000,
    iconPack: '',
    icon: '',
  }
}

if (process.env.NODE_ENV !== 'production') {
  nuxtConfig.server = {
    https: {
      key: fs.readFileSync(path.resolve(__dirname, 'localhost-key.pem')),
      cert: fs.readFileSync(path.resolve(__dirname, 'localhost.pem')),
    }
  }
}

export default nuxtConfig;

Spamworldpro Mini