Skip to content

Commit 02d4102

Browse files
committed
fix(functions): use subPath for ConfigMap mount to resolve edge-runtime module not found error
1 parent b998bf3 commit 02d4102

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charts/supabase/templates/functions/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ spec:
133133
{{- with .Values.functions.volumeMounts }}
134134
{{- toYaml . | nindent 12 }}
135135
{{- end }}
136-
- mountPath: /home/deno/functions/main
136+
- mountPath: /home/deno/functions/main/index.ts
137137
name: functions-main
138+
subPath: index.ts
138139
{{- with .Values.functions.resources }}
139140
resources:
140141
{{- toYaml . | nindent 12 }}

0 commit comments

Comments
 (0)