Starting with SvelteKit 2.14, hash-based routing can be configured via svelte.config.js.
svelte.config.js
export default { kit: { router: { type: 'hash' } } }