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

Updates the Supabase template to include an default edge.yaml file. #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bricks/supabase_functions/__brick__/edge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
supabase:
project_path: './supabase'
6 changes: 3 additions & 3 deletions bricks/supabase_functions/__brick__/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=2.18.5 <3.0.0"
sdk: '>=2.18.5 <3.0.0'

dependencies:
edge: ^0.0.5
edge: ^0.0.7
supabase_functions: ^0.0.1

dev_dependencies:
lints: ^2.0.1
lints: ^2.0.1
8 changes: 4 additions & 4 deletions docs/platform/supabase/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ The following Supabase configuration options are supported via the `edge.yaml` f
```yaml
supabase:
# The path to root of where your Supabase project exists.
projectPath: '.'
project_path: '.'
# An object of functions and their entrypoints to build.
# This is used if you have multiple Supabase function entrypoints.
functions:
dart_edge: 'lib/main.dart'
# The compiler optimization level to use for development builds.
devCompilerLevel: 01
dev_compiler_l_evel: 01
# The compiler optimization level to use for production builds.
prodCompilerLevel: 04
prod_compiler_level: 04
# Whether to exit the development watch process when a build fails.
exitWatchOnFailure: false
exit_watch_on_failure: false
```

## Multiple entrypoints
Expand Down