nuxt.config.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. '@sentry/nuxt/module',
  11. 'nuxt-booster',
  12. 'nuxt-svgo',
  13. ],
  14. ssr: false,
  15. devtools: { enabled: true },
  16. css: ['animate.css', '~/public/css/config.css'],
  17. vue: {
  18. compilerOptions: {
  19. isCustomElement: (tag: string) => ['lottie-player'].includes(tag),
  20. },
  21. },
  22. runtimeConfig: {
  23. public: {
  24. API_URL: process.env.API_URL || 'http://localhost:8000',
  25. ACCOUNT_LOGIN: process.env.ACCOUNT_LOGIN,
  26. ACCOUNT_PASSWD: process.env.ACCOUNT_PASSWD,
  27. SENTRY_DSN: process.env.SENTRY_DSN,
  28. },
  29. },
  30. sourcemap: {
  31. client: true,
  32. },
  33. devServer: {
  34. port: 3000,
  35. },
  36. compatibilityDate: '2024-04-03',
  37. fontMetrics: {
  38. fonts: ['Montserrat'],
  39. },
  40. googleFonts: {
  41. download: true,
  42. families: {
  43. Montserrat: '100..900',
  44. },
  45. },
  46. sentry: {
  47. sourceMapsUploadOptions: {
  48. org: process.env.SENTRY_ORG,
  49. project: process.env.SENTRY_PROJECT,
  50. authToken: process.env.SENTRY_AUTH_TOKEN,
  51. },
  52. },
  53. svgo: {
  54. autoImportPath: '~/assets/icons',
  55. componentPrefix: 'i',
  56. defaultImport: 'component',
  57. svgoConfig: {
  58. plugins: [
  59. {
  60. name: 'convertColors',
  61. params: {
  62. currentColor: true,
  63. },
  64. },
  65. ],
  66. },
  67. },
  68. tailwindcss: {
  69. config: {
  70. theme: {
  71. extend: {
  72. colors: {
  73. primary: '#FF4646',
  74. foreground: '#EDE8D8',
  75. background: {
  76. 100: '#212121',
  77. 200: '#323232',
  78. },
  79. },
  80. },
  81. },
  82. },
  83. },
  84. })