InvenTree/src/frontend/netlify.toml
Lukas 89795f632c
[P_UI] Added django settings for p_ui (#5343)
* Added django settings for pui

* Fix: server version is not loaded on initial load

* Moved server version out of server selector icon

* Use polling only for WSL

* Added comment and extracted to constant instead of function

* Default show server selector to false if not in dev mode

* Refactored hostList settings

* Move json serialization into global scope

* Show server selector in netlify builds

* Use demo server for netlify

* Renamed netilfy mode to dev or demo mode

* Translate for netlify

* Dont use translation in main as the are not working there
2023-08-10 20:57:33 +10:00

23 lines
494 B
TOML

# Netlify configuration file
# https://www.netlify.com/docs/netlify-toml-reference/
[build]
command = "yarn run extract && yarn run compile && yarn run build --outDir dist"
publish = "dist"
[build.environment]
VITE_DEMO = "true"
# Send requests to subpath
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[plugins]]
package = "@netlify/plugin-lighthouse"
[plugins.inputs.settings]
preset = "desktop" # Optionally run Lighthouse using a desktop configuration