update for test

This commit is contained in:
LittleBoy 2024-08-29 22:16:49 +08:00
parent cd839e923f
commit ae1d587b91
3 changed files with 7 additions and 4 deletions

View File

@ -20,7 +20,7 @@ COPY *.json .
# Install dependencies and build the app
RUN yarn install
RUN yarn build
RUN yarn build-test
# Step 2. Production image, copy all the files and run nginx

View File

@ -22,8 +22,8 @@ server {
}
location ^~/api {
proxy_pass http://localhost:30000;
proxy_set_header Host $host;
proxy_pass https://103.124.155.66;
proxy_set_header Host test-payment-be.hkchc.team;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;

View File

@ -27,7 +27,10 @@ export function useRemoteUserList() {
const list = await getRemoteUserNameList();
return list.flat();
}
const {data:usernameList} = useRequest(loadUserList)
const {data:usernameList} = useRequest(loadUserList,{
cacheKey:'remote-username-list',
staleTime: 300000
})
// const [userList, setUserList] = useState<string[]>([])
//const [usernameList, setUserList] = useState<string[]>([])