uppy/e2e/clients/dashboard-aws/app.js

17 lines
434 B
JavaScript

import AwsS3 from '@uppy/aws-s3'
import { Uppy } from '@uppy/core'
import Dashboard from '@uppy/dashboard'
import '@uppy/core/dist/style.css'
import '@uppy/dashboard/dist/style.css'
const uppy = new Uppy()
.use(Dashboard, { target: '#app', inline: true })
.use(AwsS3, {
limit: 2,
endpoint: process.env.VITE_COMPANION_URL,
shouldUseMultipart: false,
})
// Keep this here to access uppy in tests
window.uppy = uppy