wonderfulfrog.com/scripts/upload.js
2025-04-14 13:45:38 -07:00

10 lines
277 B
JavaScript

import "dotenv/config";
import uploadToBunny from "upload-to-bunny";
await uploadToBunny("./dist", "", {
storageZoneName: process.env.BUNNY_STORAGE_ZONE_NAME,
cleanDestination: true,
accessKey: process.env.BUNNY_ACCESS_KEY,
maxConcurrentUploads: 50,
region: "",
});