mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 13:02:21 +08:00
feat(docs): bootstrapping using blocksuite (#2859)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
'use server';
|
||||
import { writeFile } from 'node:fs/promises';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const __dirname = fileURLToPath(new URL('.', import.meta.url));
|
||||
|
||||
export async function saveFile(binary: any) {
|
||||
const data = new Uint8Array(binary);
|
||||
await writeFile(__dirname + 'pages' + '/binary', data);
|
||||
}
|
||||
Reference in New Issue
Block a user