Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

306 B
Raw Blame
/** Keep SSR host decisions consistent with the original Worker request. */
export function useCloudRequestURL() {
  const request = import.meta.server
    ? (useRequestEvent()?.context.cloudflare?.request as Request | undefined)
    : undefined
  return request ? new URL(request.url) : useRequestURL()
}