nuxt.config.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. ],
  53. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  54. vuetify: {
  55. customVariables: ['~/assets/style/variables.scss'],
  56. theme: {
  57. dark: false,
  58. themes: {
  59. dark: {
  60. primary: colors.blue.darken2,
  61. accent: colors.grey.darken3,
  62. secondary: colors.amber.darken3,
  63. info: colors.teal.lighten1,
  64. warning: colors.amber.base,
  65. error: colors.deepOrange.accent4,
  66. success: colors.green.accent3
  67. }
  68. }
  69. }
  70. },
  71. // Build Configuration: https://go.nuxtjs.dev/config-build
  72. build: {
  73. }
  74. }