Replies: 2 comments 10 replies
-
Run supabase/setup-cli@v1
with:
version: beta
Error: Invalid Version: beta |
Beta Was this translation helpful? Give feedback.
7 replies
-
Found an issue trying the new --use-api flag on Windows. Running unexpected deploy status 400: {"message":"Entrypoint path does not exist - /tmp/user_fn_rqsfebcljeizuojtkabi_2c51519f-dff7-44cd-a019-bcd259144f1e_5/supabase\functions\cleanup-expired-sessions\index.ts"} Looks like the server isn't handling Windows path separators () correctly when processing the uploaded files. The path in the error message shows a mix of forward and backslashes. I tried both with and without the --project-ref flag, same result. Removing --use-api (using Docker) works fine. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've introduced an experimental flag to the Supabase CLI, which allows you to deploy Edge Functions without running Docker.
How to use
This also simplifies importing files outside the
supabase/
directory within Edge Functions. Useful for monorepo setups where you want to share code between your frontend and Edge Functions.For example, Given the directory layout below, you can import
my-lib
from eitherindex.ts
ordeno.json
.The new flag is available from the Supabase CLI beta releases 2.13.3. Please check CLI upgrade guide on how to use the beta releases on your machine.
CI
We also recommend using the
--use-api
flag if you deploy Edge Functions via CI. This should speed up the deploys as it no longer requires Docker and also solves a race condition previously occurred when deploying multiple functions in parallel.Here's an example GitHub Action config:
Note: If you run into any issues with the
--use-api
, you can drop the flag to use the default Docker-based deploy mechanism.Note 2: To run/ test Edge Functions locally (
supabase functions serve
), you will still need Docker. This only modifies deploy behavior.Beta Was this translation helpful? Give feedback.
All reactions