patwasalinguist
Serve a directory index with oak?
Hi, I’m wondering if anyone can help me out having Oak serve a directory index (the way apache does, for instance) if a user goes to /some/directory/path? (Sorry if this is the wrong discord, I couldn’t find one related to Oak…)
1 replies
Deno KV: Should I expect 'value too large' errors inserting a JSON file with kv.set?
I was trying out kv and quickly ran into something I found surprising;
hieroglyphs.json
is not huge (360K), and yet I get this error:
I feel like I’m missing something obvious; am I trying to do something kv wasn’t designed for?
TIA6 replies
Possible to deploy the chat example to deno deploy?
I would like to try running this demo on deno deploy:
https://deno.com/manual@v1.34.0/examples/chat_app
However, I have seen somewhere that deploy doesn't suport websockets. Is this currently the case? Is it possbile to run this with deploy?
thanks
10 replies
Is inspecting import.meta.url a reliable way to distinguish browser and deno contexts?
I have been trying to figure out a good pattern to import JSON that will work whether called in deno or the browser. This is what I was thinking:
I would welcome advice as to whether this is a good approach to this problem.
thanks 🙏
11 replies