You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Supabase CLI version 1.215.0 or higher you can configure a custom entrypoint to your Edge Functions. This can be used to write Edge Functions in pure JavaScript instead of TypeScript.
Save your Function as a JavaScript file (eg: index.js) and then update the supabase/config.toml as follows:
[functions.hello-world]
# other entriesentrypoint = './functions/hello-world/index.js'# path must be relative to config.toml
You can use any .ts, .js, .tsx, .jsx or .mjs file as the entrypoint for a Function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From Supabase CLI version 1.215.0 or higher you can configure a custom entrypoint to your Edge Functions. This can be used to write Edge Functions in pure JavaScript instead of TypeScript.
Save your Function as a JavaScript file (eg:
index.js
) and then update thesupabase/config.toml
as follows:You can use any
.ts
,.js
,.tsx
,.jsx
or.mjs
file as the entrypoint for a Function.More details: https://supabase.com/docs/guides/functions/quickstart#not-using-typescript
Beta Was this translation helpful? Give feedback.
All reactions