J.
Explore posts from servershow to persist data with deno kv when running a docker container?
Iām building a deno project using only the built-in deno kv. I know you can also use the self-hosted backend, but for now that's outside of my scope
I want to containerize the app with docker using a single
Dockerfile
for simplicity
what I need help with:
- how to persist the local kv data across container runs
- ensuring the non-root deno user can read from and write to the volume where data is stored
currently I have something like:
This works, but I have to run the container with the root user (instead of passing the instruction USER deno
).
Any guidance or examples would be appreciated!1 replies
Need Guidance Optimizing Multi-Select Typeahead
What your environment is: Node 18? Bun? pnpm / yarn / npm?
- Bun v1.0.23
- Next.js v14.1.0 (app router)
- tRPC v^10.45.0
- React Query v4
What's wrong: with complete and exact errors
The current challenge involves the implementation of a multi-select typeahead feature.
The objective is to disable the query when the user input's prefix matches any empty cached data.
For instance, if a user enters "hello" and receives data
[...]
, then enters "hellow" resulting in an empty data []
, all subsequent queries prefixed with "hellow" should be disabled.
What you have: any relevant code which you can share, better yet a full repo or stackblitz
1 replies