()
| 8 | } |
| 9 | |
| 10 | async 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 | |
| 25 | main(); |
no test coverage detected