This commit is contained in:
Chris Wanstrath 2026-02-25 15:35:01 -08:00
parent 87d0ff50c1
commit 3cbb25a82a

View File

@ -1,7 +1,5 @@
import type { Manifest } from '@types' import type { Manifest } from '@types'
import { LOCAL_HOST } from '%config' const DEFAULT_HOST = process.env.DEV ? 'http://localhost:3000' : 'http://toes.local'
const DEFAULT_HOST = process.env.DEV ? 'http://localhost:3000' : `http://${LOCAL_HOST}`
const normalizeUrl = (url: string) => const normalizeUrl = (url: string) =>
url.startsWith('http://') || url.startsWith('https://') ? url : `http://${url}` url.startsWith('http://') || url.startsWith('https://') ? url : `http://${url}`