nuxt.config.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. export default {
  2. // Global page headers (https://go.nuxtjs.dev/config-head)
  3. head: {
  4. title: '合方圆-合天地方圆',
  5. meta: [
  6. { charset: 'utf-8' },
  7. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  8. { hid: 'description', name: 'description', content: '' }
  9. ],
  10. link: [
  11. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  12. ]
  13. },
  14. css: [
  15. '@/assets/public.css'
  16. ],
  17. // Auto import components (https://go.nuxtjs.dev/config-components)
  18. components: true,
  19. // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
  20. buildModules: [
  21. '@nuxtjs/tailwindcss'
  22. ],
  23. // Modules (https://go.nuxtjs.dev/config-modules)
  24. modules: [
  25. // https://go.nuxtjs.dev/axios
  26. '@nuxtjs/axios',
  27. ],
  28. // api中间件
  29. serverMiddleware: [
  30. '~/server/index.js'
  31. ],
  32. // Axios module configuration (https://go.nuxtjs.dev/config-axios)
  33. axios: {
  34. proxy: true
  35. },
  36. // Build Configuration (https://go.nuxtjs.dev/config-build)
  37. build: {},
  38. server: {
  39. port: 8000, // default: 3000
  40. host: '0.0.0.0' // default: localhost
  41. }
  42. }