nuxt.config.js 1.5 KB

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