diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index c1b8632..3e3f580 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -1,5 +1,6 @@ export const load = async ({ fetch }) => { - const result = await fetch('https://starboardcoop-things-api.glitch.me/things'); + const host = process.env.API_HOST ?? 'http://localhost:8088'; + const result = await fetch(`${host}/things`); const data = await result.json(); data.things = data.things.filter(thing => thing.categories);