nuxt.config.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. export default defineNuxtConfig({
  2. modules: [
  3. '@nuxtjs/tailwindcss',
  4. '@nuxtjs/color-mode',
  5. '@nuxtjs/google-fonts',
  6. '@nuxt/image',
  7. '@nuxt/eslint',
  8. '@pinia/nuxt',
  9. '@formkit/auto-animate/nuxt',
  10. 'nuxt-booster',
  11. 'nuxt-svgo',
  12. ],
  13. ssr: false,
  14. devtools: { enabled: true },
  15. css: ['animate.css', '~/public/css/config.css'],
  16. vue: {
  17. compilerOptions: {
  18. isCustomElement: (tag: string) => ['lottie-player'].includes(tag),
  19. },
  20. },
  21. runtimeConfig: {
  22. public: {
  23. API_URL: process.env.API_URL || 'http://localhost:8000',
  24. ACCOUNT_LOGIN: process.env.ACCOUNT_LOGIN,
  25. ACCOUNT_PASSWD: process.env.ACCOUNT_PASSWD,
  26. },
  27. },
  28. compatibilityDate: '2024-04-03',
  29. fontMetrics: {
  30. fonts: ['Montserrat'],
  31. },
  32. googleFonts: {
  33. download: true,
  34. families: {
  35. Montserrat: '100..900',
  36. },
  37. },
  38. svgo: {
  39. autoImportPath: '~/assets/icons',
  40. componentPrefix: 'i',
  41. defaultImport: 'component',
  42. },
  43. tailwindcss: {
  44. config: {
  45. theme: {
  46. extend: {
  47. colors: {
  48. primary: '#FF4646',
  49. foreground: '#EDE8D8',
  50. background: {
  51. 100: '#212121',
  52. 200: '#323232',
  53. },
  54. },
  55. },
  56. },
  57. },
  58. },
  59. })