Closed itsdrew closed 4 years ago
I'll have to test this.
Yikes, this is annoying! Defo will fix. The leading /
is supposed be the default and should be required when adding an extra path /some/kinda/path
.
Fixing this would help me too.
Also if you put the slash after, like 'path/'
, then your stuff gets uploaded with 'undefinedundefined'
prepended to every file
This is alluded to in the first post, but specifically, another example of this going wrong is:
If you set the deployPath to:
a/b
It will be deployed to:
a/b/a/b/
My pull requests should resolve these problems
RC4 has been released in @next which fixes this. 🌮
pluginOptions: { s3Deploy: { ... deployPath: '/path', ... } }
In V 3.0.0 if I set the deploy path to /path, files get deployed to the bucket as expected: bucket/path
In V4.0.0-rc3: if I set the deploy path to '/path', files get deployed to the bucket as: bucket//path//path if I set the deploy path to 'path', files get deployed to the bucket as: bucket/path/path
Edit: Just saw your comment on the most recent commit. Looks like you are aware of the duplicating issue. Should the deploy path start with a "/", or should we leave the leading "/" out?