nuxt.config.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: 'preconnect',
  20. href: 'https://fonts.googleapis.com'
  21. },
  22. {
  23. rel: 'preconnect',
  24. href: 'https://fonts.gstatic.com',
  25. crossorigin: ''
  26. },
  27. {
  28. rel: 'stylesheet',
  29. 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'
  30. },
  31. {
  32. rel: 'stylesheet',
  33. href: 'https://fonts.googleapis.com/icon?family=Material+Icons'
  34. }
  35. ]
  36. }
  37. },
  38. runtimeConfig: {
  39. public: {
  40. apiUrl: process.env.NUXT_PUBLIC_API_URL || 'http://localhost:3000',
  41. studentPlatform: process.env.STUDENT_PLATFORM_URL || 'http://localhost:9000'
  42. }
  43. }
  44. })