# Netlify preview builds for pull requests [build] command = "pip install -r requirements.txt && zensical build --clean && python scripts/post_build.py" publish = "site" [build.environment] PYTHON_VERSION = "3.12" # Netlify's "pretty URLs" serves .html at / and redirects // there. # The legacy .html redirects (see scripts/post_build.py) would then loop, so # serve URLs exactly as built - matching GitHub Pages, which hosts the live site. [build.processing.html] pretty_urls = false