diff --git a/server/api/dev/testing/tmpdir.ts b/server/api/dev/testing/tmpdir.ts new file mode 100644 index 0000000..fb7381a --- /dev/null +++ b/server/api/dev/testing/tmpdir.ts @@ -0,0 +1,13 @@ +import { log } from "@server/logger"; +import * as fs from "fs"; + +export default eventHandler(async (ev) => { + try { + fs.readFileSync("tmp/.gitkeep"); + } catch (e) { + log.error(e); + } + return { + cwd: process.cwd(), + }; +});