| 1 | import { readFileSync } from "node:fs"; |
| 2 | |
| 3 | export const handler = async (event) => ({ |
| 4 | marker: readFileSync(new URL("./marker.txt", import.meta.url), "utf8").trim(), |
| 5 | environment: process.env.IMAGE_FUNCTION_ENV, |
| 6 | event, |
| 7 | }); |
| 8 | |
| 9 | export const alternate = async (event) => ({ |
| 10 | handler: "alternate", |
| 11 | event, |
| 12 | }); |