nuxt.config.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * @Description:
  3. * @Author: 欧阳承珺
  4. * @LastEditors: 欧阳承珺
  5. * @Date: 2022-10-17 11:06:52
  6. * @LastEditTime: 2022-10-19 17:14:06
  7. */
  8. export default {
  9. // Global page headers: https://go.nuxtjs.dev/config-head
  10. head: {
  11. title: '17PDF',
  12. htmlAttrs: {
  13. lang: 'en',
  14. },
  15. meta: [
  16. { charset: 'utf-8' },
  17. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  18. { hid: 'description', name: 'description', content: '' },
  19. { name: 'format-detection', content: 'telephone=no' },
  20. ],
  21. link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
  22. },
  23. // Global CSS: https://go.nuxtjs.dev/config-css
  24. css: [
  25. '@/assets/main.scss'
  26. ],
  27. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  28. plugins: [
  29. '~/plugins/api'
  30. ],
  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. // https://go.nuxtjs.dev/typescript
  36. '@nuxt/typescript-build',
  37. // https://windicss.org/guide/
  38. 'nuxt-windicss',
  39. '@nuxtjs/composition-api/module'
  40. ],
  41. // Modules: https://go.nuxtjs.dev/config-modules
  42. modules: [
  43. '@nuxtjs/axios',
  44. '@nuxtjs/proxy'
  45. ],
  46. axios: {
  47. timeout: 3000,
  48. prefix: '/api/',
  49. proxy: true
  50. },
  51. proxy: {
  52. '/api': { target: 'https://17pdf.com'}
  53. },
  54. // Build Configuration: https://go.nuxtjs.dev/config-build
  55. build: {},
  56. }