Configurable URL for the API (#205)
* Configurable engine URL Fixes #206 * fix import.meta problem (#210) --------- Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { VITE_KC_API_BASE_URL } from '../env'
|
||||
|
||||
export default function withBaseUrl(path: string): string {
|
||||
const baseUrl = 'https://api.dev.kittycad.io'
|
||||
return baseUrl + path
|
||||
return VITE_KC_API_BASE_URL + path
|
||||
}
|
||||
|
Reference in New Issue
Block a user