nuxt.config.js 1.4 KB

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