nuxt.config.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. const URL = 'http://localhost:3000'
  2. export default {
  3. mode: 'universal',
  4. /*
  5. ** Headers of the page
  6. */
  7. head: {
  8. title: process.env.npm_package_name || '',
  9. meta: [
  10. { charset: 'utf-8' },
  11. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  12. { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
  13. ],
  14. link: [
  15. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
  16. { rel: 'stylesheet', href: '/css/font-awesome/css/all.css' },
  17. { rel: 'stylesheet', href: '/css/default.css' }
  18. ]
  19. },
  20. /*
  21. ** Customize the progress-bar color
  22. */
  23. loading: { color: '#fff' },
  24. /*
  25. ** Global CSS
  26. */
  27. css: [
  28. ],
  29. /*
  30. ** Plugins to load before mounting the App
  31. */
  32. plugins: [
  33. ],
  34. /*
  35. ** Nuxt.js dev-modules
  36. */
  37. buildModules: [
  38. ],
  39. /*
  40. ** Nuxt.js modules
  41. */
  42. modules: [
  43. // Doc: https://bootstrap-vue.js.org
  44. 'bootstrap-vue/nuxt',
  45. // Doc: https://axios.nuxtjs.org/usage
  46. '@nuxtjs/axios',
  47. '@nuxtjs/pwa',
  48. '@nuxtjs/auth'
  49. ],
  50. /*
  51. ** Axios module configuration
  52. ** See https://axios.nuxtjs.org/options
  53. */
  54. axios: {
  55. proxy: true,
  56. baseURL: URL
  57. },
  58. proxy: {
  59. '/api': URL
  60. },
  61. /*
  62. ** Build configuration
  63. */
  64. build: {
  65. /*
  66. ** You can extend webpack config here
  67. */
  68. extend (config, ctx) {
  69. }
  70. },
  71. auth: {
  72. strategies: {
  73. local: {
  74. endpoints: {
  75. login: {
  76. propertyName: 'token'
  77. },
  78. logout: true
  79. }
  80. }
  81. }
  82. }
  83. }