Files
2026-07-13 13:23:39 +08:00

18 lines
436 B
JavaScript

import { Actor, Dataset, KeyValueStore, log } from 'apify';
const mainOptions = {
exit: Actor.isAtHome(),
storage:
process.env.STORAGE_IMPLEMENTATION === 'LOCAL'
? new (await import('@apify/storage-local')).ApifyStorageLocal()
: undefined,
};
await Actor.main(async () => {
const a = await KeyValueStore.getInput();
log.info('val', a);
await Dataset.pushData(a);
}, mainOptions);