-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hey everyone 👋
I'm trying to periodically back up my dataset with the @sanity/export package through a Vercel chron job.
const timestamp = new Date().toISOString();
const filePath = `/tmp/sanity-${timestamp}.tar.gz`;
const client = createClient({
projectId: process.env.SANITY_STUDIO_PROJECT_ID!,
dataset: "production",
apiVersion: "2025-06-11",
token: process.env.SANITY_STUDIO_READ_API_TOKEN!,
useCdn: false,
});
await exportDataset({
client,
dataset: "production",
outputPath: filePath,
assets: true,
drafts: false,
raw: false,
});When i ping this endpoint i get the error stream.on is not a function - What am i doing wrong here?
salvadorsru and zafercuz
Metadata
Metadata
Assignees
Labels
No labels