mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
89795f632c
* 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
23 lines
494 B
TOML
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
|