This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
root: "proxy-test.recast.studio" | |
tools: "recasttool.vercel.app", | |
website: "framer-default-url" | |
dirs: ["/use-cases", "/tools", '/_content-site'], | |
} | |
async function handleRequest(request) { | |
const url = new URL(request.url); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timecut = require('timecut'); | |
const AWS = require('aws-sdk'); | |
const stream = require('stream'); | |
const uploadStreamS3 = () => { | |
const s3 = new AWS.S3(); | |
const pass = new stream.PassThrough(); | |
const params = { Bucket: "bucketname", Key: "output.mp4", Body: pass }; | |
s3.upload(params, function(s3Err, data) { | |
if (s3Err) throw s3Err |