Open mavichow opened 1 month ago
I've cloned, tested and deploy Nuxt3 to Vercel with this repo: https://github.com/tursodatabase/examples/tree/master/app-top-web-frameworks
Everything works well with remote DB and when I tried to embed the db locally, the replica.db seems like it's empty.
May I know did I missed out any steps?
// server/utils/turso.ts import { createClient } from "@libsql/client"; export function useTurso() { const tursoConfig = useRuntimeConfig().turso; if (!tursoConfig.dbUrl || !tursoConfig.dbAuthToken) { throw new Error( "Please fill the NUXT_TURSO_DB_URL and NUXT_TURSO_DB_AUTH_TOKEN env variables" ); } return createClient({ url : "file:dbs/replica.db", syncUrl: tursoConfig.dbUrl, authToken: tursoConfig.dbAuthToken, }); } `
I've cloned, tested and deploy Nuxt3 to Vercel with this repo: https://github.com/tursodatabase/examples/tree/master/app-top-web-frameworks
Everything works well with remote DB and when I tried to embed the db locally, the replica.db seems like it's empty.
May I know did I missed out any steps?