nuxt.config.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import tailwindcss from "@tailwindcss/vite"
  2. export default defineNuxtConfig({
  3. compatibilityDate: "2026-03-13",
  4. css: ["~/assets/css/main.css"],
  5. devServer: { port: 3000 },
  6. devtools: { enabled: true, timeline: { enabled: true } },
  7. // future: { compatibilityVersion: 5 },
  8. imports: {
  9. dirs: [
  10. "mutations/**",
  11. "queries",
  12. "stores"
  13. ]
  14. },
  15. modules: [
  16. "@nuxt/icon",
  17. "@pinia/nuxt",
  18. "@pinia/colada-nuxt",
  19. "@primevue/nuxt-module"
  20. ],
  21. nitro: {
  22. experimental: {
  23. asyncContext: true,
  24. websocket: true
  25. }
  26. },
  27. runtimeConfig: {
  28. public: {
  29. // api: { baseURL: "" },
  30. // auth: { baseURL: "" },
  31. websocketHost: ""
  32. },
  33. // betterAuth: { baseURL: "", secret: "" },
  34. // postmarkServerToken: "",
  35. prismaDatabaseURL: ""
  36. },
  37. vite: {
  38. plugins: [tailwindcss()],
  39. optimizeDeps: {
  40. include: [
  41. "lodash-es",
  42. "socket.io-client",
  43. "@primevue/core/api"
  44. ]
  45. }
  46. },
  47. // module configs
  48. icon: {
  49. size: "1em",
  50. class: "inline",
  51. mode: "svg",
  52. aliases: { personae: "fa6-solid:masks-theater" }
  53. },
  54. lodash: {
  55. prefix: "_",
  56. prefixSkip: false,
  57. upperAfterPrefix: false
  58. },
  59. pinia: { storesDirs: ["./app/stores/**"] },
  60. primevue: {
  61. importPT: { from: "~/utils/passthrough.js" },
  62. options: {
  63. ptOptions: { mergeSections: true, mergeProps: true },
  64. unstyled: true
  65. }
  66. }
  67. })