Skip to content

Commit ea4e7de

Browse files
committed
fix: make mounted functions directory writable
1 parent 9444f3c commit ea4e7de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/functions/serve/serve.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func Run(ctx context.Context, slug string, envFilePath string, noVerifyJWT *bool
117117
return err
118118
}
119119

120-
binds := []string{filepath.Join(cwd, utils.FunctionsDir) + ":" + relayFuncDir + ":ro,z"}
120+
binds := []string{filepath.Join(cwd, utils.FunctionsDir) + ":" + relayFuncDir + ":rw,z"}
121121
// If a import map path is explcitly provided, mount it as a separate file
122122
if importMapPath != "" {
123123
binds = append(binds, filepath.Join(cwd, importMapPath)+":"+customDockerImportMapPath+":ro,z")
@@ -282,7 +282,7 @@ func runServeAll(ctx context.Context, envFilePath string, noVerifyJWT *bool, imp
282282
}
283283

284284
binds := []string{
285-
filepath.Join(cwd, utils.FunctionsDir) + ":" + relayFuncDir + ":ro,z",
285+
filepath.Join(cwd, utils.FunctionsDir) + ":" + relayFuncDir + ":rw,z",
286286
utils.DenoRelayId + ":/root/.cache/deno:rw,z",
287287
}
288288
// If a import map path is explcitly provided, mount it as a separate file

0 commit comments

Comments
 (0)