nuxt.config.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. import colors from 'vuetify/es5/util/colors'
  2. export default {
  3. // Enable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
  4. ssr: true,
  5. // Auto import components (https://go.nuxtjs.dev/config-components)
  6. components: true,
  7. head: {
  8. titleTemplate: 'Frames, par Opentalent',
  9. title: 'frames',
  10. meta: [
  11. { charset: 'utf-8' },
  12. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  13. { hid: 'description', name: 'description', content: '' },
  14. ],
  15. link: [
  16. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  17. ]
  18. },
  19. // Global CSS: https://go.nuxtjs.dev/config-css
  20. css: [
  21. // '~/assets/style/global.scss'
  22. ],
  23. i18n: {
  24. locales: [
  25. {
  26. code: 'fr',
  27. file: 'fr-FR.js'
  28. }
  29. ],
  30. lazy: true,
  31. langDir: 'lang/',
  32. defaultLocale: 'fr',
  33. vueI18n: {
  34. silentTranslationWarn: true,
  35. silentFallbackWarn: true
  36. }
  37. },
  38. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  39. plugins: [
  40. ],
  41. // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  42. buildModules: [
  43. // https://go.nuxtjs.dev/typescript
  44. '@nuxt/typescript-build',
  45. // https://go.nuxtjs.dev/vuetify
  46. '@nuxtjs/vuetify',
  47. '@nuxt/image'
  48. ],
  49. // Modules: https://go.nuxtjs.dev/config-modules
  50. modules: [
  51. '@nuxtjs/i18n',
  52. 'nuxt-leaflet',
  53. [
  54. 'nuxt-fontawesome', {
  55. imports: [
  56. {
  57. set: '@fortawesome/free-solid-svg-icons',
  58. icons: ['fas']
  59. },
  60. {
  61. set: '@fortawesome/free-brands-svg-icons',
  62. icons: ['fab']
  63. }
  64. ]
  65. }]
  66. ],
  67. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  68. vuetify: {
  69. customVariables: ['~/assets/style/variables.scss'],
  70. theme: {
  71. dark: false,
  72. themes: {
  73. dark: {
  74. primary: colors.blue.darken2,
  75. accent: colors.grey.darken3,
  76. secondary: colors.amber.darken3,
  77. info: colors.teal.lighten1,
  78. warning: colors.amber.base,
  79. error: colors.deepOrange.accent4,
  80. success: colors.green.accent3
  81. }
  82. }
  83. }
  84. },
  85. // Build Configuration: https://go.nuxtjs.dev/config-build
  86. build: {
  87. }
  88. }