app.js 461 B

1234567891011121314151617
  1. import { Uppy } from '@uppy/core'
  2. import Dashboard from '@uppy/dashboard'
  3. import AwsS3Multipart from '@uppy/aws-s3-multipart'
  4. import '@uppy/core/dist/style.css'
  5. import '@uppy/dashboard/dist/style.css'
  6. const uppy = new Uppy()
  7. .use(Dashboard, { target: '#app', inline: true })
  8. .use(AwsS3Multipart, {
  9. limit: 2,
  10. endpoint: process.env.VITE_COMPANION_URL,
  11. shouldUseMultipart: true,
  12. })
  13. // Keep this here to access uppy in tests
  14. window.uppy = uppy