DONE: fix error on gold display is not showing on display tv
This commit is contained in:
@@ -5,6 +5,7 @@ CUSTOMER_HOST_PORT=3000
|
||||
VITE_API_URL=https://qms-api.erahn.com.my
|
||||
NEXT_PUBLIC_API_URL=https://qms-api.erahn.com.my
|
||||
VITE_BRANCH_QR_BASE_URL=https://qms-customer.erahn.com.my
|
||||
VITE_GOLD_PRICE_URL=https://apiujrah.erahn.com.my/api/harga_emas
|
||||
|
||||
QR_TOKEN_SECRET=qms-branch-qr-v1
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ CUSTOMER_HOST_PORT=3000
|
||||
VITE_API_URL=https://qms-api.erahn.com.my
|
||||
NEXT_PUBLIC_API_URL=https://qms-api.erahn.com.my
|
||||
VITE_BRANCH_QR_BASE_URL=https://qms-customer.erahn.com.my
|
||||
VITE_GOLD_PRICE_URL=https://apiujrah.erahn.com.my/api/harga_emas
|
||||
|
||||
QR_TOKEN_SECRET=qms-branch-qr-v1
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
VITE_API_URL=http://localhost:8080
|
||||
VITE_BRANCH_QR_BASE_URL=http://localhost:3000
|
||||
@@ -1,4 +1,5 @@
|
||||
export const SERVER_URL = import.meta.env.VITE_API_URL;
|
||||
export const SERVER_URL =
|
||||
import.meta.env.VITE_API_URL ?? 'http://localhost:8080';
|
||||
|
||||
/** Public base URL encoded into branch QR codes (ManageBranchesScreen only). */
|
||||
export const BRANCH_QR_BASE_URL =
|
||||
|
||||
@@ -19,6 +19,7 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_URL: ${VITE_API_URL:-http://localhost:8080}
|
||||
VITE_GOLD_PRICE_URL: ${VITE_GOLD_PRICE_URL:-https://apiujrah.erahn.com.my/api/harga_emas}
|
||||
container_name: qms-fe-teller
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
FROM node:20-bookworm AS build
|
||||
WORKDIR /app
|
||||
|
||||
ARG VITE_API_URL=http://localhost:8080
|
||||
ARG VITE_GOLD_PRICE_URL
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
ENV VITE_GOLD_PRICE_URL=$VITE_GOLD_PRICE_URL
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
export const SERVER_URL =
|
||||
import.meta.env.VITE_API_URL ?? 'http://localhost:8080';
|
||||
export const SERVER_URL = import.meta.env.VITE_API_URL || 'http://localhost:8080';
|
||||
|
||||
export const GOLD_PRICE_URL =
|
||||
import.meta.env.VITE_GOLD_PRICE_URL ??
|
||||
'https://apiujrah.erahn.com.my/api/harga_emas';
|
||||
export const GOLD_PRICE_URL = import.meta.env.VITE_GOLD_PRICE_URL;
|
||||
|
||||
export const ROLES = {
|
||||
ROLE_USER: 'ROLE_USER',
|
||||
|
||||
Reference in New Issue
Block a user