nuxt.config.ts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import tailwindcss from "@tailwindcss/vite";
  2. // https://nuxt.com/docs/api/configuration/nuxt-config
  3. export default defineNuxtConfig({
  4. compatibilityDate: '2025-07-15',
  5. devtools: { enabled: true },
  6. modules: [
  7. '@nuxt/eslint',
  8. '@nuxt/image',
  9. '@nuxt/ui',
  10. ],
  11. css: ['~/assets/css/main.css'],
  12. vite: {
  13. plugins: [tailwindcss()]
  14. },
  15. app: {
  16. head: {
  17. link: [
  18. {
  19. rel: 'icon',
  20. type: 'image/png',
  21. sizes: '128x128',
  22. href: '/icons/favicon-128x128.png'
  23. },
  24. {
  25. rel: 'icon',
  26. type: 'image/png',
  27. sizes: '96x96',
  28. href: '/icons/favicon-96x96.png'
  29. },
  30. {
  31. rel: 'icon',
  32. type: 'image/png',
  33. sizes: '32x32',
  34. href: '/icons/favicon-32x32.png'
  35. },
  36. {
  37. rel: 'icon',
  38. type: 'image/png',
  39. sizes: '16x16',
  40. href: '/icons/favicon-16x16.png'
  41. },
  42. {
  43. rel: 'icon',
  44. type: 'image/x-icon',
  45. href: '/favicon.ico'
  46. },
  47. {
  48. rel: 'preconnect',
  49. href: 'https://fonts.googleapis.com'
  50. },
  51. {
  52. rel: 'preconnect',
  53. href: 'https://fonts.gstatic.com',
  54. crossorigin: ''
  55. },
  56. {
  57. rel: 'stylesheet',
  58. href: 'https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'
  59. },
  60. {
  61. rel: 'stylesheet',
  62. href: 'https://fonts.googleapis.com/icon?family=Material+Icons'
  63. },
  64. {
  65. rel: 'stylesheet',
  66. href: 'https://cdn.jsdelivr.net/npm/@mdi/font@7/css/materialdesignicons.min.css'
  67. }
  68. ]
  69. }
  70. },
  71. runtimeConfig: {
  72. public: {
  73. apiUrl: process.env.NUXT_PUBLIC_API_URL || 'http://localhost:3000',
  74. studentPlatform: process.env.STUDENT_PLATFORM_URL || 'http://localhost:9000'
  75. }
  76. }
  77. })