The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { debounce } from 'lodash-es'
export const safeHistoryReplaceState = debounce((url: string) => {
if (typeof window === 'undefined') return
if (url === window.location.href) return
try {
window.history.replaceState(null, '', url)
} catch (error) {
console.warn('Failed to call history.replaceState:', error)
}
}, 120)