Skip to content

Commit

Permalink
fix(dev): mount src and root as read-only by default (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Feb 6, 2023
1 parent a899f1d commit a459e1e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"ufo": "^1.0.1",
"unenv": "^1.0.3",
"unimport": "^2.1.0",
"unstorage": "^1.0.1"
"unstorage": "^1.1.0"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.110",
Expand Down
24 changes: 20 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export async function loadOptions(
for (const p in fsMounts) {
options.devStorage[p] = options.devStorage[p] || {
driver: "fs",
readOnly: p === "root" || p === "src",
base: fsMounts[p],
};
}
Expand Down

0 comments on commit a459e1e

Please sign in to comment.