feat: ditch triplit, move to postgresql + drizzle orm

This commit is contained in:
Zoe
2026-04-08 17:03:07 -05:00
parent c341c96798
commit e2e3ac6e86
121 changed files with 6680 additions and 4373 deletions
+1 -29
View File
@@ -69,14 +69,6 @@ export default defineNuxtConfig({
`,
tagPosition: 'bodyOpen',
type: 'text/javascript',
},
{
src: 'https://cdn.jsdelivr.net/npm/eruda',
},
{
innerHTML: `
eruda.init();
`,
}
]
},
@@ -115,8 +107,8 @@ export default defineNuxtConfig({
'@vue/devtools-core',
'@vue/devtools-kit',
'@sentry/nuxt',
'@floating-ui/vue',
'@nuxt/hints/runtime/hydration/component',
'@nuxt/hints/runtime/lazy-load/composables',
'@tanstack/vue-virtual',
'shiki',
'better-auth/vue',
@@ -127,10 +119,6 @@ export default defineNuxtConfig({
'remark-math',
'rehype-katex',
'unist-util-visit',
'@triplit/client',
'@triplit/db',
'sorted-btree',
'elen',
'comlink',
'nanoid'
],
@@ -142,12 +130,6 @@ export default defineNuxtConfig({
},
},
nitro: {
experimental: {
websocket: true,
}
},
// bizarely, when I enable this, it adds an 8 second or so lag when I navigate to a different page occasionally
// experimental: {
// viewTransition: true,
@@ -156,20 +138,10 @@ export default defineNuxtConfig({
modules: [
'@nuxt/hints',
'@unocss/nuxt',
'triplit-nuxt',
// '@sentry/nuxt/module',
'@nuxt/fonts'
],
triplit: {
schema_path: './triplit/schema.ts',
serverUrl: process.env.NUXT_PUBLIC_TRIPLIT_URL,
token: process.env.NUXT_TRIPLIT_ANON_TOKEN,
storage: 'memory',
// we will connect automatically in the auth plugin when we call startSession
autoConnect: false,
},
devtools: {
enabled: true,