nuxt.config.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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: [{ charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: '' }, { name: 'format-detection', content: 'telephone=no' }],
  10. link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
  11. script: [
  12. {
  13. src: 'https://www.googletagmanager.com/gtag/js?id=G-S376V42WBS',
  14. async: true,
  15. },
  16. {
  17. type: 'text/javascript',
  18. charset: 'utf-8',
  19. innerHTML: `window.dataLayer = window.dataLayer || [];
  20. function gtag() { dataLayer.push(arguments); }
  21. gtag('js', new Date());
  22. gtag('config', 'G-S376V42WBS');`,
  23. },
  24. ],
  25. __dangerouslyDisableSanitizers: ['script'],
  26. },
  27. // Global CSS: https://go.nuxtjs.dev/config-css
  28. css: [],
  29. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  30. plugins: ['plugins/vant'],
  31. // Auto import components: https://go.nuxtjs.dev/config-components
  32. components: true,
  33. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  34. buildModules: [],
  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. router: {
  43. extendRoutes(routes, resolve) {
  44. routes.push(
  45. {
  46. name: 'Course',
  47. path: '/course',
  48. component: resolve(__dirname, 'pages/course/index.vue'),
  49. },
  50. {
  51. name: 'Authlogin',
  52. path: '/authlogin',
  53. component: resolve(__dirname, 'pages/auth/authLogin.vue'),
  54. },
  55. {
  56. name: 'AuthloginApp',
  57. path: '/authloginApp',
  58. component: resolve(__dirname, 'pages/auth/authLoginInApp.vue'),
  59. },
  60. {
  61. name: 'Unlogin',
  62. path: '/unlogin',
  63. component: resolve(__dirname, 'pages/course/unLogin.vue'),
  64. },
  65. {
  66. name: 'RedPackage',
  67. path: '/:id?',
  68. component: resolve(__dirname, 'pages/index.vue'),
  69. },
  70. {
  71. name: 'LuckDraw',
  72. path: '/luckdraw/:id?',
  73. component: resolve(__dirname, 'pages/luckdraw.vue'),
  74. },
  75. {
  76. name: 'ToolBox',
  77. path: '/toolbox/:id',
  78. component: resolve(__dirname, 'pages/toolbox/index.vue'),
  79. },
  80. {
  81. name: 'Install',
  82. path: '/install',
  83. component: resolve(__dirname, 'pages/install.vue'),
  84. },
  85. {
  86. name: 'NFT',
  87. path: '/nft/:id/:account/:type?',
  88. component: resolve(__dirname, 'pages/nft/index.vue'),
  89. },
  90. {
  91. name: 'NftGroup',
  92. path: '/nft_group/:id',
  93. component: resolve(__dirname, 'pages/nft/group.vue'),
  94. },
  95. {
  96. name: 'Treasure',
  97. path: '/treasure/:id?',
  98. component: resolve(__dirname, 'pages/treasure/index.vue'),
  99. },
  100. {
  101. name: 'TreasureInvite',
  102. path: '/treasure/invite/:id/:channel?',
  103. component: resolve(__dirname, 'pages/treasure/invite.vue'),
  104. },
  105. {
  106. name: 'Payment',
  107. path: '/payment',
  108. component: resolve(__dirname, 'pages/payment/index.vue'),
  109. },
  110. {
  111. name: 'PaymentAch',
  112. path: '/payment_ach/:amount',
  113. component: resolve(__dirname, 'pages/payment/ach.vue'),
  114. },
  115. {
  116. name: 'HealthCheck',
  117. path: '/healthcheck',
  118. component: resolve(__dirname, 'pages/_system/healthcheck.vue'),
  119. },
  120. {
  121. name: 'custom',
  122. path: '*',
  123. component: resolve(__dirname, 'pages/_system/404.vue'),
  124. }
  125. );
  126. },
  127. },
  128. env: {
  129. NUXT_ENV: env[process.env.MODE],
  130. },
  131. };