feat(app): use PROD env var instead of NODE_ENV
All checks were successful
Build and Push Docker Image / tests (push) Successful in 29s
Build and Push Docker Image / build (push) Successful in 1m46s

This commit is contained in:
Lars Hampe 2024-10-03 21:36:47 +02:00
parent 2475250618
commit 975d2e1d58

View File

@ -7,10 +7,9 @@ type Fetch = {
token?: string | null
}
const url =
import.meta.env.NODE_ENV === 'production'
? 'https://api.boring.tools'
: 'http://localhost:3000'
const url = import.meta.env.PROD
? 'https://api.boring.tools'
: 'http://localhost:3000'
export const queryFetch = async ({ path, method, data, token }: Fetch) => {
const response = await axios({