Comments (5)
Feel free to PR - or I'll get around to it soon.
Working on a PR along a few other improvements :)
from dart_edge.
Oh, woops!
Yes it should be:
Future<void> runBuild() async {
final functionDirectory = Directory(
p.join(Directory.current.path, 'supabase', 'functions', 'dart_edge'),
);
final entryFile = File(p.join(functionDirectory.path, 'index.ts'));
final compiler = Compiler(
logger: logger,
entryPoint: p.join(Directory.current.path, 'lib', 'main.dart'),
outputDirectory: functionDirectory.path,
outputFileName: 'main.dart.js',
level: CompilerLevel.O4,
);
await compiler.compile();
await entryFile.writeAsString(
edgeFunctionEntryFileDefaultValue('main.dart.js'),
);
}
Feel free to PR - or I'll get around to it soon.
from dart_edge.
Quickly fixed this in a standalone PR: c9c0fe3
from dart_edge.
Also the dev build will still work for now in prod, it's just less optimised.
from dart_edge.
Because every version of supabase_functions from git depends on edge from hosted and supabase_edge_functions depends on edge from git, supabase_functions from git is forbidden.
So, because supabase_edge_functions depends on supabase_functions from git, version solving failed.
When I'm trying to get supabase_functions
0.0.2+2 to fix building the supabase functions.
from dart_edge.
Related Issues (20)
- 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
- Not working as per superbase Docs HOT 6
- Can't deploy my function: Error: NotFound: No such file or directory HOT 1
- Can I create a new DART edge project within an existing Flutter project? HOT 1
- [CANT'T Compile] Cant' build on dart Dart SDK version: 3.2.0 (stable) (Tue Nov 14 18:26:59 2023 +0000) on "linux_x64" ERROR MESSAGE Compilation of the Dart entry file failed: HOT 2
- edge is not able to execute dart to js commands in Ubuntu [ Linux OS] [ Supabase edge functions]
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.