nuxt.config.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. rel: 'stylesheet',
  37. href: 'https://cdn.jsdelivr.net/npm/@mdi/font@7/css/materialdesignicons.min.css'
  38. }
  39. ]
  40. }
  41. },
  42. runtimeConfig: {
  43. public: {
  44. apiUrl: process.env.NUXT_PUBLIC_API_URL || 'http://localhost:3000',
  45. studentPlatform: process.env.STUDENT_PLATFORM_URL || 'http://localhost:9000'
  46. }
  47. }
  48. })