|
|
@@ -1,18 +1,16 @@
|
|
|
import tailwindcss from "@tailwindcss/vite"
|
|
|
|
|
|
+// noinspection JSUnresolvedReference
|
|
|
export default defineNuxtConfig({
|
|
|
compatibilityDate: "2026-03-13",
|
|
|
css: ["~/assets/css/main.css"],
|
|
|
- devServer: { port: 3000 },
|
|
|
+ // devServer: { port: 3000 },
|
|
|
devtools: { enabled: true, timeline: { enabled: true } },
|
|
|
+ experimental: { asyncContext: true },
|
|
|
// future: { compatibilityVersion: 5 },
|
|
|
|
|
|
imports: {
|
|
|
- dirs: [
|
|
|
- "mutations/**",
|
|
|
- "queries",
|
|
|
- "stores"
|
|
|
- ]
|
|
|
+ dirs: ["mutations/**", "queries", "stores"]
|
|
|
},
|
|
|
|
|
|
modules: [
|
|
|
@@ -32,11 +30,11 @@ export default defineNuxtConfig({
|
|
|
runtimeConfig: {
|
|
|
public: {
|
|
|
// api: { baseURL: "" },
|
|
|
- // auth: { baseURL: "" },
|
|
|
+ auth: { baseURL: "" },
|
|
|
websocketHost: ""
|
|
|
},
|
|
|
|
|
|
- // betterAuth: { baseURL: "", secret: "" },
|
|
|
+ betterAuth: { baseURL: "", secret: "" },
|
|
|
// postmarkServerToken: "",
|
|
|
prismaDatabaseURL: ""
|
|
|
},
|
|
|
@@ -46,10 +44,24 @@ export default defineNuxtConfig({
|
|
|
|
|
|
optimizeDeps: {
|
|
|
include: [
|
|
|
+ "@primevue/core/api",
|
|
|
+ "@primeuix/forms/resolvers/zod",
|
|
|
+ "better-auth/client",
|
|
|
+ "better-auth/client/plugins",
|
|
|
+ "better-auth/plugins/access",
|
|
|
+ "better-auth/plugins/admin/access",
|
|
|
"lodash-es",
|
|
|
"socket.io-client",
|
|
|
- "@primevue/core/api"
|
|
|
+ "tailwind-merge",
|
|
|
+ "trix",
|
|
|
+ "zod"
|
|
|
]
|
|
|
+ },
|
|
|
+
|
|
|
+ vue: {
|
|
|
+ template: {
|
|
|
+ compilerOptions: { isCustomElement: (tag) => tag.startsWith("trix-") }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|