nuxt.config.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. allowedHosts: [
  60. 'local.app.astra-corp.net',
  61. 'localhost',
  62. '127.0.0.1'
  63. ],
  64. hmr: {
  65. protocol: 'wss',
  66. port: 24678
  67. }
  68. }
  69. },
  70. compatibilityDate: '2025-02-28'
  71. })