You have two options:
svelte.config.js (activate the relevant option), middleware.ts (redirect logic)src/routes/+layout.server.ts (redirect logic) (you may want/need to duplicate the logic from in middleware.ts in case you have prerendered pages)