nuxt.config.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. module.exports = {
  2. mode: 'universal',
  3. /*
  4. ** Headers of the page
  5. */
  6. head: {
  7. title: 'NuxtJS Programming Courses | Yongun', //title: process.env.npm_package_name || '',
  8. meta: [
  9. { charset: 'utf-8' },
  10. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  11. // { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
  12. { hid: 'description', name: 'description', content: process.env.npm_package_description || '' },
  13. { hid: 'og:title', name: 'og:title', content: 'Learn from amazing courses | Filip Jerga' },
  14. { hid: 'og:locale', name: 'og:locale', content: 'en_EU' },
  15. { hid: 'og:url', name: 'og:url', content: process.env.BASE_URL || 'http://localhost:3000' },
  16. { hid: 'og:type', name: 'og:type', content: 'website' },
  17. { hid: 'og:image', name: 'og:image', content: 'https://images.unsplash.com/photo-1484417894907-623942c8ee29?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2389&q=80' },
  18. { hid: 'og:description', name: 'og:description', content: 'udemy에 동영상 컨텐츠를 배포하기 위해서 제작된 프로젝트' },
  19. ],
  20. link: [
  21. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  22. ],
  23. script: [
  24. { src: 'https://kit.fontawesome.com/d33a83f69c.js' }
  25. ]
  26. },
  27. /*
  28. ** Customize the progress-bar color
  29. */
  30. loading: { color: '#fff' },
  31. /*
  32. ** Global CSS
  33. */
  34. css: [
  35. '@/assets/scss/main.scss'
  36. ],
  37. styleResources: {
  38. scss: [
  39. '@/assets/scss/_variables.scss'
  40. ]
  41. },
  42. /*
  43. ** Plugins to load before mounting the App
  44. */
  45. plugins: [
  46. {src: '~/plugins/filters'},
  47. {src: '~/plugins/vuelidate'},
  48. {src: '~/plugins/integrations'},
  49. {src: '~/plugins/components'},
  50. {src: '~/plugins/tooltip'},
  51. {src: '~/plugins/toasted', ssr: false},
  52. {src: '~/plugins/paginate', ssr: false}
  53. ],
  54. /*
  55. ** Nuxt.js modules
  56. */
  57. modules: [
  58. // Doc: https://axios.nuxtjs.org/usage
  59. '@nuxtjs/axios',
  60. 'portal-vue/nuxt',
  61. '@nuxtjs/style-resources'
  62. ],
  63. /*
  64. ** Axios module configuration
  65. ** See https://axios.nuxtjs.org/options
  66. */
  67. axios: {
  68. },
  69. serverMiddleware: [
  70. '~/server/routes/index'
  71. ],
  72. /*
  73. ** Build configuration
  74. */
  75. build: {
  76. /*
  77. ** You can extend webpack config here
  78. */
  79. extend(config, ctx) {
  80. }
  81. }
  82. }