nuxt.config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. const env = require('./env')
  2. module.exports = {
  3. env: {
  4. NUXT_ENV: env[process.env.MODE]
  5. }
  6. }
  7. export default {
  8. // Global page headers: https://go.nuxtjs.dev/config-head
  9. head: {
  10. title: 'de-net-official',
  11. htmlAttrs: {
  12. lang: 'en'
  13. },
  14. meta: [
  15. { charset: 'utf-8' },
  16. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  17. { hid: 'description', name: 'description', content: '' },
  18. { name: 'format-detection', content: 'telephone=no' }
  19. ],
  20. link: [
  21. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  22. ]
  23. },
  24. // Global CSS: https://go.nuxtjs.dev/config-css
  25. css: [
  26. ],
  27. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  28. plugins: [
  29. ],
  30. // Auto import components: https://go.nuxtjs.dev/config-components
  31. components: true,
  32. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  33. buildModules: [
  34. ],
  35. // Modules: https://go.nuxtjs.dev/config-modules
  36. modules: [
  37. // https://go.nuxtjs.dev/bootstrap
  38. 'bootstrap-vue/nuxt',
  39. ],
  40. // Build Configuration: https://go.nuxtjs.dev/config-build
  41. build: {
  42. },
  43. router: {
  44. extendRoutes(routes, resolve) {
  45. routes.push({
  46. name: 'index',
  47. path: '/:id?',
  48. component: resolve(__dirname, 'pages/index.vue')
  49. })
  50. }
  51. }
  52. }