diff --git a/plugs/core/std.ts b/plugs/core/std.ts index 22235495..095c0c29 100644 --- a/plugs/core/std.ts +++ b/plugs/core/std.ts @@ -37,6 +37,10 @@ const stdLibCacheKey = ["stdLibCache"]; type StdLibCache = Record; // page name -> last modified time export async function init() { + // Check if in read-only mode + if (await system.getMode() === "ro") { + return; + } let stdLibCache: StdLibCache | undefined = await datastore.get( stdLibCacheKey, );