update @examples/aws-companion (#6168)

minor config changes
This commit is contained in:
Prakash 2026-02-04 18:43:37 +05:30 committed by GitHub
parent 9ed49719f7
commit fe229e4f50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -23,5 +23,5 @@ uppy.use(Dashboard, {
plugins: ['GoogleDrive', 'Webcam'],
})
uppy.use(AwsS3, {
companionUrl: 'http://localhost:3020',
endpoint: 'http://localhost:3020',
})

View file

@ -10,7 +10,7 @@ const DATA_DIR = path.join(__dirname, 'tmp')
app.use(
require('cors')({
origin: 'http://localhost:3000',
origin: 'http://localhost:5173',
methods: ['GET', 'POST', 'OPTIONS'],
credentials: true,
}),
@ -45,6 +45,7 @@ const options = {
filePath: DATA_DIR,
secret: 'blah blah',
debug: true,
corsOrigin: true,
}
// Create the data directory here for the sake of the example.