scook
05/26/2023, 1:07 AMconst uppy = new Uppy()
.use(Webcam, {
modes: ['video-audio', 'audio-only']
})
.use(Audio, {
showAudioSourceDropdown: true
})
.use(Tus, {
endpoint: `${process.env.NEXT_PUBLIC_SUPABASE_URL}/storage/v1/upload/resumable`,
headers: {
authorization: `Bearer ${process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY}`
},
chunkSize: 6 * 1024 * 1024,
allowedMetaFields: [
'bucketName',
'objectName',
'contentType',
'cacheControl'
]
});
On staging, NEXT_PUBLIC_SUPABASE_URL
is https://<my-project-id>.supabase.co
, whereas on local it is http://localhost:54321
. Locally, the upload results in net::ERR_CONNECTION_REFUSED
.
Is it possible to get the local instance to support the same? Am I able to do whatever it is support did for the staging instance but for my local?
Thanks.
https://cdn.discordapp.com/attachments/1111460646131875892/1111460646744240228/Screenshot_2023-05-25_at_5.56.21_PM.png▾
SC
09/08/2023, 11:04 PM