What I'd like to propose (and will submit a PR for) is to allow an environment flag for replacing the default location block with SPA block.
location / {
try_files $uri $uri/ /index.html
}
Or if we want to add the ability to inject a SPA block through a predefined named file.
Right now the nginx.conf provided by s2i by default includes a block:
in the
default_serverblock. When serving an SPA at root this causes problems. There are a bunch of examples out there for how to serve single page apps from rootWhat I'd like to propose (and will submit a PR for) is to allow an environment flag for replacing the default location block with SPA block.
Or if we want to add the ability to inject a SPA block through a predefined named file.