File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
functions/serve/templates Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,15 @@ async function verifyJWT(jwt: string): Promise<boolean> {
6060serve ( 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 )
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments