File tree 4 files changed +17
-3
lines changed
4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ type (
225
225
Policy RequestPolicy `toml:"policy"`
226
226
InspectorPort uint16 `toml:"inspector_port"`
227
227
Secrets SecretsConfig `toml:"secrets"`
228
+ DenoVersion uint `toml:"deno_version"`
228
229
}
229
230
230
231
SecretsConfig map [string ]Secret
@@ -827,6 +828,16 @@ func (c *config) Validate(fsys fs.FS) error {
827
828
return err
828
829
}
829
830
}
831
+ switch c .EdgeRuntime .DenoVersion {
832
+ case 0 :
833
+ return errors .New ("Missing required field in config: edge_runtime.deno_version" )
834
+ case 1 :
835
+ break
836
+ case 2 :
837
+ c .EdgeRuntime .Image = deno2
838
+ default :
839
+ return errors .Errorf ("Failed reading config: Invalid %s: %v." , "edge_runtime.deno_version" , c .EdgeRuntime .DenoVersion )
840
+ }
830
841
// Validate logflare config
831
842
if c .Analytics .Enabled {
832
843
if c .Analytics .Backend == LogflareBigQuery {
Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
const (
12
- pg13 = "supabase/postgres:13.3.0"
13
- pg14 = "supabase/postgres:14.1.0.89"
12
+ pg13 = "supabase/postgres:13.3.0"
13
+ pg14 = "supabase/postgres:14.1.0.89"
14
+ deno2 = "supabase/edge-runtime:v1.68.0-develop.8"
14
15
)
15
16
16
17
type images struct {
Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ sign_in_sign_ups = 30
141
141
# Number of OTP / Magic link verifications that can be made in a 5 minute interval per IP address.
142
142
token_verifications = 30
143
143
144
-
145
144
# Configure one of the supported captcha providers: `hcaptcha`, `turnstile`.
146
145
# [auth.captcha]
147
146
# enabled = true
@@ -283,6 +282,8 @@ enabled = true
283
282
policy = " oneshot"
284
283
# Port to attach the Chrome inspector for debugging edge functions.
285
284
inspector_port = 8083
285
+ # The Deno major version to use.
286
+ deno_version = 1
286
287
287
288
# [edge_runtime.secrets]
288
289
# secret_key = "env(SECRET_VALUE)"
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ enabled = true
259
259
# Use `oneshot` for hot reload, or `per_worker` for load testing.
260
260
policy = " per_worker"
261
261
inspector_port = 8083
262
+ deno_version = 2
262
263
263
264
[edge_runtime .secrets ]
264
265
test_key = " test_value"
You can’t perform that action at this time.
0 commit comments