nuxt.config.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. },
  24. /*
  25. ** Customize the progress-bar color
  26. */
  27. loading: { color: '#fff' },
  28. /*
  29. ** Global CSS
  30. */
  31. css: [
  32. '@/assets/scss/main.scss',
  33. '@/assets/css/icons.css'
  34. ],
  35. styleResources: {
  36. scss: [
  37. '@/assets/scss/_variables.scss'
  38. ]
  39. },
  40. /*
  41. ** Plugins to load before mounting the App
  42. */
  43. plugins: [
  44. {src: '~/plugins/filters'},
  45. {src: '~/plugins/vuelidate'},
  46. {src: '~/plugins/integrations'},
  47. {src: '~/plugins/components'},
  48. {src: '~/plugins/tooltip'},
  49. {src: '~/plugins/toasted', ssr: false},
  50. {src: '~/plugins/paginate', ssr: false}
  51. ],
  52. /*
  53. ** Nuxt.js modules
  54. */
  55. modules: [
  56. // Doc: https://axios.nuxtjs.org/usage
  57. '@nuxtjs/axios',
  58. 'portal-vue/nuxt',
  59. '@nuxtjs/style-resources'
  60. ],
  61. /*
  62. ** Axios module configuration
  63. ** See https://axios.nuxtjs.org/options
  64. */
  65. axios: {
  66. baseURL: process.env.BASE_URL || 'http://localhost:3000'
  67. },
  68. serverMiddleware: [
  69. '~/server/routes/index'
  70. ],
  71. /*
  72. ** Build configuration
  73. */
  74. build: {
  75. /*
  76. ** You can extend webpack config here
  77. */
  78. extend(config, ctx) {
  79. }
  80. }
  81. }