edge-runtime icon indicating copy to clipboard operation
edge-runtime copied to clipboard

how to deploy JS not TS?

Open gowy222 opened this issue 1 year ago • 4 comments

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?

gowy222 avatar Mar 13 '24 08:03 gowy222

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

sweatybridge avatar Mar 13 '24 08:03 sweatybridge

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

nyannyacha avatar Mar 27 '24 22:03 nyannyacha

I'm having the same problem.

bright2024 avatar Apr 26 '24 04:04 bright2024

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.

bright2024 avatar Apr 26 '24 04:04 bright2024

any solution for this ?

mahaveer3 avatar Feb 14 '25 09:02 mahaveer3