Open zdllucky opened 3 years ago
Btw, the native express serve static works fine^ that is why I proposed bad behaviour of StaticApp
configureExpress: app => {
app.set('trust proxy', 1);
app.use('/uploads',
static(process.env.NODE_ENV === 'production'
? `/media/uploads/`
: `static/uploads/`, options));
}
Bug report
Docker volume path can't be served as static app.
Firstly thanks to maintainer folks for such a cool headless (Best one i ve used so on). Here is what I got
Describe the bug
I am trying to conteierize my app within docker and also do serve some uploads, so in order to prevent upload file loss ive decided to store those in separate docker volume. The error says it cant find the volume path A clear and concise description of the bug.
Like this My Static app configuration
When I run docker I also specify my volume (-v /a:/b) and it works fine. But i get this error during docker build:
To Reproduce
I hope the reproduce process is qiute clean from above. Just try to add volume path as static app path
Expected behaviour
I understand that it might occur during build time when volume is still not inited but asking this kind requirement during buildtime (not launch time) seems quite irrational I actually hoped it will host static app from any runtime real location specified.
System information