Skip to main content
MediaKit

redirect$

Use this function to redirect the user (this will not affect the function type):

import { createCaller, redirect$ } from '@solid-mediakit/prpc'
let redirect = false
export const myQuery = createCaller(() => {
if (redirect) {
return redirect$('/login')
}
return 'yes'
})

Last updated: 5/30/25, 9:16 AM

MediaKitFully featured, fully customisable static site generation for SolidStart
Community
github