After Change publicPath is implemented, the only way to change the
publicPath would be in the
npx frontity build process. It’d be great if we also allow people to change it dynamically, at runtime.
- Let users change the public path dynamically using a Frontity Query Options like
- Let users change the public path dynamically using their
- Let packages change the public path dynamically with their own logic using
- Fallback to the public path defined during the build with
- Fallback to the default
- If we are going to populate
state.frontity.options.publicPath, it would be great if it always contains the value of the public path, even if this was not populated via the state (
afterSSR) or a Frontity Query Option.
- Implementation in the old framework: wp-pwa/public-path.js at dev-stable · wp-pwa/wp-pwa · GitHub
- Webpack docs: Public Path | webpack
- Excalidraw: Excalidraw | Hand-drawn look & feel • Collaborative • Secure
- Frontity Query Options: Auth header in Source packages and Frontity Query Options - #20 by luisherranz