Fix API url condition
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { env } from '$env/dynamic/private'
|
||||
import { PUBLIC_API_URL_DEV, PUBLIC_API_URL_PROD, PUBLIC_API_GRAPHQL_PATH } from '$env/static/public'
|
||||
|
||||
// Define API URL from environment
|
||||
export const API_URL = env.DEV ? PUBLIC_API_URL_DEV : PUBLIC_API_URL_PROD
|
||||
export const API_URL = import.meta.env.DEV ? PUBLIC_API_URL_DEV : PUBLIC_API_URL_PROD
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user