%PDF- %PDF-
Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/ |
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/nuxt.config.js |
const environment = { APP_URL: process.env.APP_URL || 'http://takeaseat-api.test/api/', APP_DEBUG: process.env.APP_DEBUG == 'true' ? true : false, STRIPE_KEY: process.env.STRIPE_KEY, } require('dotenv').config() export default { head: { title: 'Takeaseat', htmlAttrs: { lang: 'en' }, meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'msapplication-TileColor', content: '#2d89ef' }, { name: 'theme-color', content: '#ffffff' }, { hid: 'description', name: 'description', content: 'Providing a safe space for you to talk more and live a better life' }, ], link: [ { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }, { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' }, { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }, { rel: 'manifest', href: '/site.webmanifest' } ], script: [ { src: 'https://unpkg.com/array-flat-polyfill', body: true } ], }, // Global CSS: https://go.nuxtjs.dev/config-css css: [ '~assets/css/app.css' ], tailwindcss: { jit: true }, googleFonts: { download: true, families: { Poppins: [100, 400, 500, 600, 700], Raleway: [500, 600, 700] } }, auth: { strategies: { 'laravelJWT': { provider: 'laravel/jwt', url: environment.APP_URL, endpoints: { logout: { url: 'auth/logout', method: 'post' }, login: { url: 'auth/login', method: 'post' }, refresh: { url: 'auth/refresh', method: 'post' }, user: { url: 'auth/user', method: 'get' } }, token: { property: 'token', maxAge: 60 * 60 }, refreshToken: { maxAge: 20160 * 60 }, }, }, watchLoggedIn: false, redirect: { login: '/', logout: '/', callback: '/', home: '/' }, }, /* ** Axios module configuration */ axios: { // See https://github.com/nuxt-community/axios-module#options baseURL: environment.APP_URL, debug: environment.APP_DEBUG }, toast: { position: 'bottom-left' }, // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins plugins: [ '~/plugins/vee-validate.js', '~/plugins/vue-tailwind.js', '~/plugins/vue-money.js', '~/plugins/password-strength-indicator.js', { src: '~/plugins/facebook-events.js' }, { src: '~/plugins/vue-croppie.js', ssr: false }, { src: '~/plugins/vue-calendar.js', ssr: false }, { src: '~/plugins/vue2editor.js', mode: 'client' }, { src: '~/plugins/vue-smoothscroll.js', mode: 'client' }, ], components: [ { path: '~/components', pathPrefix: false, }, ], // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules buildModules: [ // https://go.nuxtjs.dev/tailwindcss '@nuxtjs/dotenv', '@nuxtjs/tailwindcss', '@nuxt/postcss8', '@nuxtjs/google-fonts' ], tailwindcss: { jit: true }, gtm: { id: 'GTM-TGWNJCS' }, publicRuntimeConfig: { recaptcha: { version: 3, hideBadge: true, size: 'invisible', siteKey: process.env.RECAPTCHA_SITE_KEY } }, sitemap: { hostname: 'http://takeaseat.eco-n-tech.co.uk', gzip: true, exclude: [ '/therapist', '/therapist/**', '/account', '/account/**', '/booking/success' ], defaults: { changefreq: 'daily', priority: 1, lastmod: new Date() } }, // Modules: https://go.nuxtjs.dev/config-modules modules: [ '@nuxtjs/sitemap', '@nuxtjs/toast', '@nuxtjs/axios', '@nuxtjs/auth-next', '@nuxtjs/moment', '@nuxtjs/gtm', '@nuxtjs/recaptcha', ['nuxt-stripe-module', { publishableKey: environment.STRIPE_KEY }], 'cookie-universal-nuxt' ], // Build Configuration: https://go.nuxtjs.dev/config-build build: { transpile: [ "vee-validate/dist/rules" ] } }