|
2 vuotta sitten | |
---|---|---|
.. | ||
.gitignore | 2 vuotta sitten | |
README.md | 2 vuotta sitten | |
index.html | 2 vuotta sitten | |
main.js | 2 vuotta sitten | |
package.json | 2 vuotta sitten | |
server.cjs | 2 vuotta sitten |
This example uses Uppy to upload files to a DigitolOcean Space. DigitalOcean Spaces has an identical API to S3, so we can use the AwsS3 plugin. We use @uppy/companion with a custom endpoint
configuration that points to DigitalOcean.
To run this example, make sure you've correctly installed the repository root:
corepack yarn install
corepack yarn build
That will also install the dependencies for this example.
First, set up the COMPANION_AWS_KEY
, COMPANION_AWS_SECRET
,
COMPANION_AWS_REGION
, and COMPANION_AWS_BUCKET
environment variables for
@uppy/companion
in a .env
file. You may find useful to first copy the
.env.example
file:
[ -f .env ] || cp .env.example .env
Then you can start the dev server:
corepack yarn workspace @uppy-example/digitalocean-spaces start