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 are supabase edge functions meant to be deployed? #57

Open
giulioco opened this issue Oct 17, 2024 · 1 comment
Open

How are supabase edge functions meant to be deployed? #57

giulioco opened this issue Oct 17, 2024 · 1 comment

Comments

@giulioco
Copy link

I noticed there's no CI/CD flow to deploy supabase edge functions, nor is there a specific script in apps/api/package.json. Is the assumption that the user just deploys them manually with supabase functions deploy or am I missing something?

@giulioco
Copy link
Author

Also, are the npm imports for deno deploys working for anyone? Meaning imports like

import { WelcomeEmail } from "@v1/emails/welcome";
import React from "react";
import { render } from "react-email/components";
import { Resend } from "resend";
import { Webhook } from "standardwebhooks";

in apps/api/supabase/functions/send-email/index.ts

seems to not working when deployed with supabase functions deploy :

Bundling Function: send-email
Error: failed to create the graph

Caused by:
    Relative import path "@v1/emails/welcome" not prefixed with / or ./ or ../ and not in import map from "file:///Users/username/git/v1/apps/api/supabase/functions/send-email/index.ts"
        at file:///Users/username/git/v1/apps/api/supabase/functions/send-email/index.ts:2:26

and same on VS code:

Relative import path "@v1/emails/waitlisted" not prefixed with / or ./ or ../
  hint: If you want to use a JSR or npm package, try running

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

1 participant