I have a React application that is built statically and served by Nginx.
I serve the different version of the application with these 2 location context :
- This one serves the latest version of the application
location / {
root /etc/application_development/latest;
index index.html;
}
- This one serves the different versions of the application
location /version {
root /etc/kosmikpwa_development/$1;
index index.html;
}
It works fine but when an application is on /version, it tries to access its assets on /static instead on /version/X.X.X/static
How can I change that in order for the applications on /version to work as expected ?