Skip to content

Commit a532fd1

Browse files
authored
fix(functions): bump to Edge Runtime 1.5.2 (#1251)
2 parents 6736b87 + ab78415 commit a532fd1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

internal/functions/serve/templates/main.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ async function verifyJWT(jwt: string): Promise<boolean> {
6060
serve(async (req: Request) => {
6161
const url = new URL(req.url);
6262
const { pathname } = url;
63+
64+
// handle health checks
65+
if (pathname === "/_internal/health") {
66+
return new Response(
67+
JSON.stringify({ "message": "ok" }),
68+
{ status: 200, headers: { "Content-Type": "application/json" } },
69+
);
70+
}
71+
6372
const pathParts = pathname.split("/");
6473
const functionName = pathParts[1];
6574

@@ -91,7 +100,7 @@ serve(async (req: Request) => {
91100
console.error(`serving the request with ${servicePath}`);
92101

93102
const memoryLimitMb = 150;
94-
const workerTimeoutMs = 1 * 60 * 5000;
103+
const workerTimeoutMs = 5 * 60 * 1000;
95104
const noModuleCache = false;
96105
const envVarsObj = Deno.env.toObject();
97106
const envVars = Object.entries(envVarsObj)

internal/utils/misc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const (
3434
StudioImage = "supabase/studio:20230622-d8395eb"
3535
DenoRelayImage = "supabase/deno-relay:v1.6.0"
3636
ImageProxyImage = "darthsim/imgproxy:v3.8.0"
37-
EdgeRuntimeImage = "supabase/edge-runtime:v1.4.2"
37+
EdgeRuntimeImage = "supabase/edge-runtime:v1.5.2"
3838
VectorImage = "timberio/vector:0.28.1-alpine"
3939
// Update initial schemas in internal/utils/templates/initial_schemas when
4040
// updating any one of these.

0 commit comments

Comments
 (0)