[build] # The index HTML file to drive the bundling process. target = "index.html" # Build in release mode. release = false # Use a custom cargo profile. Overrides the default chosen by cargo. Ignored if the 'index.html' has one configured. # cargo_profile = "" # The output dir for all final assets. dist = "dist" # The public URL from which assets are to be served. public_url = "/" # Whether to include hash values in the output file names. filehash = true # Whether to inject scripts (and module preloads) into the finalized output. inject_scripts = true cargo_flags = ["-Z build-std=std,panic_abort"] # Run without network access # offline = false # Require Cargo.lock and cache are up to date # frozen = false # Require Cargo.lock is up to date # locked = false # Control minification # minify = "never" # can be one of: never, on_release, always # Allow disabling sub-resource integrity (SRI) # no_sri = false # An optional cargo profile to use # cargo_profile = "release-trunk" [watch] # Paths to watch. The `build.target`'s parent folder is watched by default. watch = [] # Paths to ignore. ignore = [] [serve] # The address to serve on. addresses = ["127.0.0.1"] # The port to serve on. port = 3000 # Aliases to serve, typically found in an /etc/hosts file. # aliases = ["http://localhost.mywebsite.com"] # Disable the reverse DNS lookup during startup # disable_address_lookup = false # Open a browser tab once the initial build is complete. open = false headers = { "Cross-Origin-Embedder-Policy" = "require-corp", "Cross-Origin-Opener-Policy" = "same-origin" } # Whether to disable fallback to index.html for missing files. # no_spa = false # Disable auto-reload of the web app. # no_autoreload = false # Disable error reporting # no_error_reporting = false # Additional headers set for responses. # headers = { "test-header" = "header value", "test-header2" = "header value 2" } # Protocol used for autoreload WebSockets connection. # ws_protocol = "ws" # The certificate/private key pair to use for TLS, which is enabled if both are set. # tls_key_path = "self_signed_certs/key.pem" # tls_cert_path = "self_signed_certs/cert.pem" # Additional headers to send. NOTE: header names must be valid HTTP headers. # headers = { "X-Foo" = "bar" }