tursodatabase / turso-docs

Turso Documentation
https://docs.turso.tech
MIT License
11 stars 49 forks source link

Issue on docs #195

Closed james0r closed 4 months ago

james0r commented 4 months ago

Path: /sdk/ts/guides/nextjs

Code examples could provide file locations.

It seems that we're creating our client in @/lib/turso? If so, why is it not exported and why are we importing a named export of turso when we initialized a const client.

notrab commented 4 months ago

Hey @james0r

Thanks for opening this issue.

I've updated the examples to use turso, and updated the createClient to export turso now too. Thanks for that.

I'll make some further updates to the examples soon which will make the file names clearer (if applicable).

Feel free to open a PR if you see or spot anything that doesn't look right, happy to merge any requests.