Skip to content

Commit 656f11a

Browse files
committed
fix: prerender issue
1 parent 3345d47 commit 656f11a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/routes/+page.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { countFeatures, venueTypes } from '$lib/stores';
22
import { type Venue } from '$lib/types';
33
import { base } from '$app/paths';
4+
import { building } from '$app/environment';
45
import { type Option } from 'svelte-multiselect';
56

67
const loadData = async (fetch) => {
@@ -80,6 +81,8 @@ const getVenueTypes = (data: Venue[]) => {
8081
};
8182

8283
export const load = ({ fetch }) => {
83-
const data = loadData(fetch);
84-
return data;
84+
if (!building) {
85+
const data = loadData(fetch);
86+
return data;
87+
}
8588
};

static/datasets/cinema-context.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"@context": "https://schema.org",
3-
"@id": "https://homernetwork.github.io/venues/datasets/cinema-context",
3+
"@id": "https://homernetwork.github.io/venues/datasets/cinema-context.json",
44
"@type": "Dataset",
55
"name": "Cinema Context",
66
"description": "Cinema Context is a database of Dutch cinema and film culture.",
@@ -49,7 +49,9 @@
4949
"url": "http://www.cinemacontext.nl/"
5050
}
5151
],
52-
"sameAs": ["http://www.cinemacontext.nl/id/B000016"]
52+
"sameAs": [
53+
"http://www.cinemacontext.nl/id/B000016"
54+
]
5355
},
5456
{
5557
"@context": "https://schema.org/",
@@ -331,4 +333,4 @@
331333
}
332334
}
333335
]
334-
}
336+
}

0 commit comments

Comments
 (0)