supabase / edge-runtime

A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.
MIT License
680 stars 62 forks source link

how to deploy JS not TS? #285

Open gowy222 opened 8 months ago

gowy222 commented 8 months ago
Bundling test123
v1.38.0: Pulling from supabase/edge-runtime
Status: Downloaded newer image for public.ecr.aws/supabase/edge-runtime:v1.38.0
Error: entrypoint path does not exist (/home/deno/functions/test123/index.ts)

any config setup can support full .js?

sweatybridge commented 8 months ago

I will transfer this to functions team to check if they have any solutions.

nyannyacha commented 7 months ago

Once PR-301 is merged, we can load .js[x].

However, looking at @supabase/cli, it seems to hardcode index.ts after the path to be passed to the --entrypoint for the bundle command.

https://github.com/supabase/cli/blob/main/internal/functions/deploy/deploy.go#L225-L227

bright2024 commented 6 months ago

I'm having the same problem.

bright2024 commented 6 months ago

Sorry about that. It was an issue where we put the wrong function name in the deployment, and it would be nice if the error was a little clearer.