Disable prerendering

This commit is contained in:
Gus Ruben 2025-07-21 22:45:06 -04:00
parent b885bdbaf0
commit a08f126840
2 changed files with 2 additions and 4 deletions

View file

@ -1 +0,0 @@
export const prerender = true;

View file

@ -1,10 +1,9 @@
import { GEOCODER_API_KEY } from '$env/static/private';
import { building } from '$app/environment';
/** @type {import('./$types').PageServerLoad} */
export async function load({ request, getClientAddress }) {
// Get user's IP address (skip during prerendering)
const userIP = building ? null : getClientAddress();
// Get user's IP address
const userIP = getClientAddress();
let locationData = null;