Comments (6)
You could use a monorepo with a tool like https://github.com/invertase/melos; each function could be a private package in ./packages for example. You can easily share local dependencies and build/deploy scripts with Melos too.
from dart_edge.
But AFAIK when using edge build supabase_functions --dev
it always builds it as supabase/functions/dart-edge
? For now I build and rename the folder automatically. Also, edge build supabase_functions
does not seem to work on my end. It just completes without doing anything (#24)
from dart_edge.
Yeah thus was part of my thinking for #12
You can define entrypoints -> name. I'll have a think.
from dart_edge.
DM'd you on Twitter about that :) @Ehesp
from dart_edge.
My workflow looks like --
- Create new function with
edge new supabase_functions example_dart
- cd example_dart && build supabase_functions --dev
- rename example_dart/supabase/functions/dart_edge to example_dartgen
- move example_dartgen to parent supabase/functions, next to original example_dart
So my folder looks like:
-supabase
-functions
-example_dart
-example_dartgen
-packages
Seems to be working well for organizes so far, maybe it will help others manage multiple functions.
from dart_edge.
I also am having issues using this with multiple functions. Ideally, I think I'd like to have a mirrored folder structure. Basically /edge/functions/[my_function_name]
of which there can be N functions and then once edge build supabase_functions
is called, it builds each function in /edge/functions/
and outputs to /supabase/functions/*
.
Alternatively, if the edge build supabase_functions
accepted input/output args, I could make this behavior myself.
Currently, this tool seems to assume it will manage the entire dart package and be the only function in supabase. This is not necessarily the case since sometimes your package includes multiple aspect of your backend and sometimes even your frontend (as is often the case with supabase + frontend in one repo)
from dart_edge.
Related Issues (20)
- Error: Dart library 'dart:html' is not available on this platform. HOT 4
- main.dart.js -- Generated file improper usage of .toString HOT 5
- UnsupportedError occurs when using the HTTP package on the Supabase platform HOT 5
- SyntaxError: Unexpected end of JSON input at parse (<anonymous>) at packageData (ext:deno_fetch/22_body.js:368:14) at consumeBody (ext:deno_fetch/22_body.js:245:12) at eventLoopTick (ext:core/01_core.js:172:13) HOT 1
- edge build supabase_functions doesn't work HOT 4
- How to implement functions logging (`print()` or whatever else) HOT 3
- Support for Vercel Storage
- Runtime error when running `vercel dev`
- [BUG] Supabase: Cannot read request.body contents HOT 4
- How to fetch environment variables? HOT 2
- Send an email inside a Edge function HOT 4
- Support Firebase / GCP Cloud Functions
- How to send http request? HOT 1
- Migrate to `typings` as `js_bindings` is discontinued HOT 6
- An error occurred: NoSuchMethodError: method not found: 'constructor' on null
- Doesn't Work on Flutter Beta Channel HOT 12
- Following doc tutorial results in `Function not found` error message HOT 9
- Missing Documentation
- How to use it in Docker
- Cannot use `SupabaseClient` without dart:html or dart:io in Supabase Edge functions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart_edge.