nuxt.config.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. export default {
  2. ssr: true,
  3. // Global page headers: https://go.nuxtjs.dev/config-head
  4. head: {
  5. titleTemplate: '%s - App',
  6. title: 'app',
  7. htmlAttrs: {
  8. lang: 'en'
  9. },
  10. meta: [
  11. { charset: 'utf-8' },
  12. { name: 'viewport', content: 'width=device-width, initial-scale=1' },
  13. { hid: 'description', name: 'description', content: '' },
  14. { name: 'format-detection', content: 'telephone=no' }
  15. ],
  16. link: [
  17. { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
  18. ]
  19. },
  20. typescript: {
  21. strict: true
  22. },
  23. // Global CSS: https://go.nuxtjs.dev/config-css
  24. css: [
  25. ],
  26. // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  27. plugins: [
  28. ],
  29. // Modules: https://go.nuxtjs.dev/config-modules
  30. modules: [
  31. '@nuxtjs/i18n'
  32. ],
  33. vite: {
  34. esbuild: {
  35. drop: process.env.DEBUG ? [] : ['console', 'debugger'],
  36. tsconfigRaw: {
  37. compilerOptions: {
  38. experimentalDecorators: true
  39. }
  40. }
  41. },
  42. ssr: {
  43. // with ssr enabled, this config is required to load vuetify properly
  44. noExternal: ['vuetify']
  45. },
  46. server: {
  47. // @ts-expect-error J'ignore pourquoi cette erreur TS se produit, cette propriété est valide
  48. port: 443,
  49. hmr: {
  50. protocol: 'wss',
  51. port: 24678
  52. }
  53. }
  54. },
  55. compatibilityDate: '2025-02-28'
  56. }