I might emphasize that the terrain data used here is limited to a certain slice: "Contains terrain tiles in the N047E011 region. These tiles are made to be used with our terrain demo page, which centers around Innsbruck Austria [11.40416, 47.26475]" (from https://github.com/maplibre/demotiles/tree/gh-pages/terrain-tiles). Took me a moment to understand why I wouldn't get any other terrain data when changing the center.
I'd advise against including the {hash: true} option. It causes maplibre to set the location hash in the sandbox location, from which it will be read again whenever the map gets instantiated again.