chatgpt-your-files
chatgpt-your-files copied to clipboard
Tutorial branches are missing Edge Functions updates?
Bug report
Describe the bug
Howdy, the tutorial seems to be in an inbetween state, where Deno is expected in some parts, but the new Edge Functions runtime is expected in others.
The upshot is that when running through the tutorial as described (i.e., checking out step-1
, step-2
, etc.) the embeddings step no longer works (locally at least), producing an error about a missing reference to Supabase:
ReferenceError: Supabase is not defined
at file:///home/deno/functions/embed/index.ts:4:15
I'm not 100% convinced on the root cause, I'm still working through things, will update if I get a clearer picture. Or close if I've just done something incorrectly along the way!
To Reproduce
Run through the tutorial up to the embeddings portion.
Expected behavior
Embeddings should be triggered on upload.
Screenshots
N/A
System information
- OS: macOS
- Browser: Chrome
- Version of supabase-js: 10.2.4
- Version of Node.js: v20.11.0
Additional context
Can work around it by skipping the tutorial and run from the main branch, but miss that muscle memory building, step by step stuff :)