nuxt.config.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. name: 'custom',
  51. path: '*',
  52. component: resolve(__dirname, 'pages/404.vue')
  53. })
  54. }
  55. }
  56. }