Skip to content

Commit

Permalink
Add import map option for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldomke authored Jun 6, 2024
1 parent 7963191 commit 738b943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/supabase/templates/functions/functions.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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]])
Expand Down
1 change: 1 addition & 0 deletions charts/supabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 738b943

Please sign in to comment.