Skip to content

Commit

Permalink
fix: hardcoded url method
Browse files Browse the repository at this point in the history
  • Loading branch information
CaliCastle committed Mar 13, 2024
1 parent 9be5035 commit f100037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { env } from '~/env.mjs'

export function url(path = '') {
const baseUrl =
process.env.NODE_ENV === 'production'
? 'https://cali.so'
? env.NEXT_PUBLIC_SITE_URL
: 'http://localhost:3000'

return new URL(path, baseUrl)
Expand Down

0 comments on commit f100037

Please sign in to comment.