Site templates run in a sandbox
Every page is now rendered in an isolated sandbox that holds only that site's own content, with no network and none of the platform's secrets.
Every page is now rendered in an isolated sandbox that holds only that site's own content, with no network and none of the platform's secrets.
Site templates are real Blade, which means real code. That's what makes them flexible, and it's why we treat them with care: every page is now rendered in an isolated sandbox.
Each build hands the sandbox a copy of that one site's content and nothing else. It can't see other sites, the platform's settings or any keys, and it has no network access, so nothing in a template can reach out or reach across.
Templates work exactly as before, and previews and builds are rendered the same way, so what you preview is still what gets published.
Alongside it, every link the platform builds, in emails and pages alike, now comes from our own configured addresses, never from what a visitor's browser claims the address is.