Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to deploy JS not TS? #285

Open
gowy222 opened this issue Mar 13, 2024 · 4 comments
Open

how to deploy JS not TS? #285

gowy222 opened this issue Mar 13, 2024 · 4 comments

Comments

@gowy222
Copy link

gowy222 commented Mar 13, 2024

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
Copy link

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

@sweatybridge sweatybridge transferred this issue from supabase/cli Mar 13, 2024
@nyannyacha
Copy link
Collaborator

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
Copy link

I'm having the same problem.

@bright2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants