jjj
This commit is contained in:
parent
33631f6578
commit
e7c0f9f334
1 changed files with 6 additions and 1 deletions
|
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
import { FormEvent, useEffect, useMemo, useState } from 'react';
|
import { FormEvent, useEffect, useMemo, useState } from 'react';
|
||||||
|
|
||||||
const API_BASE = process.env.NEXT_PUBLIC_BACKEND_URL ?? 'http://localhost:4100';
|
const defaultApiBase =
|
||||||
|
process.env.NODE_ENV === 'production'
|
||||||
|
? 'https://backend.basetracker.lona-development.org'
|
||||||
|
: 'http://localhost:4100';
|
||||||
|
|
||||||
|
const API_BASE = process.env.NEXT_PUBLIC_BACKEND_URL ?? defaultApiBase;
|
||||||
|
|
||||||
const API = {
|
const API = {
|
||||||
signup: `${API_BASE}/auth/signup`,
|
signup: `${API_BASE}/auth/signup`,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue