From 738b943ebbb81308d952fd6a675d9b5f040ab3a8 Mon Sep 17 00:00:00 2001 From: Joel Domke Date: Thu, 6 Jun 2024 11:53:28 +0200 Subject: [PATCH] Add import map option for functions --- charts/supabase/templates/functions/functions.config.yaml | 2 +- charts/supabase/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/supabase/templates/functions/functions.config.yaml b/charts/supabase/templates/functions/functions.config.yaml index 8aed927..34f58e0 100644 --- a/charts/supabase/templates/functions/functions.config.yaml +++ b/charts/supabase/templates/functions/functions.config.yaml @@ -14,6 +14,7 @@ data: const JWT_SECRET = Deno.env.get('JWT_SECRET') const VERIFY_JWT = Deno.env.get('VERIFY_JWT') === 'true' + const importMapPath = Deno.env.get('IMPORT_MAP_PATH') function getAuthToken(req: Request) { const authHeader = req.headers.get('authorization') @@ -79,7 +80,6 @@ data: const memoryLimitMb = 150 const workerTimeoutMs = 1 * 60 * 1000 const noModuleCache = false - const importMapPath = null const envVarsObj = Deno.env.toObject() const envVars = Object.keys(envVarsObj).map((k) => [k, envVarsObj[k]]) diff --git a/charts/supabase/values.yaml b/charts/supabase/values.yaml index 62dbe13..7680e81 100644 --- a/charts/supabase/values.yaml +++ b/charts/supabase/values.yaml @@ -1039,6 +1039,7 @@ functions: DB_PORT: 5432 DB_DRIVER: postgresql DB_SSL: disable # disable, allow, prefer, require, verify-ca, verify-full + # IMPORT_MAP_PATH: home/deno/functions/import-map.json # Mount user functions # volumeMounts: # - name: my_functions