nuxt.config.js 1.3 KB

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