Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

getBaseUrl.ts

7 lines171 Bytes

1function getBaseUrl() {
2 if (typeof window !== 'undefined') return ''
3​
4 return import.meta.env.VITE_API_BASE_URL || 'http://localhost:3000'
5}
6​
7export default getBaseUrl