MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / main

Function main

apps/baseai.dev/src/scripts/remove-runtime.js:10–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10async function main() {
11 const runTime = `export const runtime = 'edge';\n\n`;
12
13 getPath('docs').forEach(async path => {
14 const docContent = fs.readFileSync(path, 'utf-8');
15
16 await fs.promises.writeFile(path, docContent.replace(runTime, ''));
17 });
18
19 getPath('learn').forEach(async path => {
20 const learnContent = fs.readFileSync(path, 'utf-8');
21 await fs.promises.writeFile(path, learnContent.replace(runTime, ''));
22 });
23}
24
25main();

Callers 1

remove-runtime.jsFile · 0.70

Calls 1

getPathFunction · 0.70

Tested by

no test coverage detected