Why does PathPrefixStrip work when PathPrefix won't?
问题 I have a GatsbyJS static site built with --prefix-paths . The pathPrefix is set to /environment/test in gatsby-config.js . It is deployed to a docker swarm running Traefik. Adding the following label to the service makes everything run ok: traefik.frontend.rule=PathPrefixStrip:/environment/test I can then browse to /environment/test and click around in my GatsbyJs site. However I find it strange since the backend is build with the path prefix. Adding the following label does not work: traefik