nuxt.config.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. 'plugins/vant'
  25. ],
  26. // Auto import components: https://go.nuxtjs.dev/config-components
  27. components: true,
  28. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  29. buildModules: [
  30. ],
  31. // Modules: https://go.nuxtjs.dev/config-modules
  32. modules: [
  33. // https://go.nuxtjs.dev/bootstrap
  34. 'bootstrap-vue/nuxt',
  35. ],
  36. // Build Configuration: https://go.nuxtjs.dev/config-build
  37. build: {
  38. },
  39. router: {
  40. extendRoutes(routes, resolve) {
  41. routes.push({
  42. name: 'RedPackage',
  43. path: '/:id?',
  44. component: resolve(__dirname, 'pages/index.vue')
  45. },
  46. {
  47. name: 'LuckDraw',
  48. path: '/luckdraw/:id?',
  49. component: resolve(__dirname, 'pages/luckdraw.vue')
  50. },
  51. {
  52. name:'ToolBox',
  53. path: '/toolbox/:id',
  54. component: resolve(__dirname, 'pages/toolbox/index.vue')
  55. },
  56. {
  57. name: 'Install',
  58. path: '/install',
  59. component: resolve(__dirname, 'pages/install.vue')
  60. },
  61. {
  62. name: 'NFT',
  63. path: '/nft/:id/:account',
  64. component: resolve(__dirname, 'pages/nft/index.vue')
  65. },
  66. {
  67. name: 'NftGroup',
  68. path: '/nft_group/:id',
  69. component: resolve(__dirname, 'pages/nft/group.vue')
  70. },
  71. {
  72. name: 'custom',
  73. path: '*',
  74. component: resolve(__dirname, 'pages/404.vue')
  75. })
  76. }
  77. },
  78. env: {
  79. NUXT_ENV: env[process.env.MODE]
  80. }
  81. }