mirror of
https://github.com/System-End/daydream-phoenix.git
synced 2026-04-19 22:05:07 +00:00
Disable prerendering
This commit is contained in:
parent
b885bdbaf0
commit
a08f126840
2 changed files with 2 additions and 4 deletions
|
|
@ -1 +0,0 @@
|
|||
export const prerender = true;
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue