[Build] Staging - Hospital Portal

This commit is contained in:
R
2023-02-14 13:31:49 +07:00
parent ed273fdafa
commit 13764a3766
51 changed files with 735 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
REACT_APP_HOST_API_URL="http://localhost:8000"
VITE_API_URL="https://aso.linksehat.dev/api/hospitalportal"

View File

@@ -8,8 +8,8 @@
"lint": "eslint --ext .ts,.tsx ./src",
"lint:fix": "eslint --fix --ext .ts,.tsx ./src",
"start": "vite --port=3000",
"build": "vite build --mode production && cp .htaccess build/.htaccess && rm -f -r @/public/dashboard && cp -r build @/public/dashboard",
"build-staging": "vite build --mode staging && cp .htaccess build/.htaccess && rm -f -r @/public/dashboard-staging && cp -r build @/public/dashboard-staging",
"build": "vite build --mode production && cp .htaccess build/.htaccess && rm -f -r ../../public/hospital-portal && cp -r build ../../public/hospital-portal",
"build-staging": "vite build --mode staging && cp .htaccess build/.htaccess && rm -f -r ../../public/hospital-portal-staging && cp -r build ../../public/hospital-portal-staging",
"serve": "vite preview",
"clear-all": "rm -rf build node_modules",
"re-start": "rm -rf build node_modules && yarn install && yarn start",

View File

@@ -39,7 +39,7 @@ export default function LoginForm() {
});
const defaultValues = {
email: 'admin@linksehat.dev',
email: 'hospitaladmin@gmail.com',
password: 'password',
remember: true,
};