-
Notifications
You must be signed in to change notification settings - Fork 25
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
edge build supabase_functions
doesn't compile anything.
#24
Comments
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. |
Also the dev build will still work for now in prod, it's just less optimised. |
Working on a PR along a few other improvements :) |
Quickly fixed this in a standalone PR: c9c0fe3 |
When I'm trying to get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dart_edge/packages/edge/lib/src/commands/build_commands/build_supabase.dart
Line 58 in 8227854
The
runBuild
method is empty. I'm not sure but shouldn't it be something likeThe text was updated successfully, but these errors were encountered: