Skip to content

Commit b2511ce

Browse files
authored
Remove VITE_LANDING_PAGE_URL env var and redirect to login if not logged in (#1356)
1 parent f0840b6 commit b2511ce

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

frontend/.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# -- Frontend --
44
VITE_BASE_URL=localhost:8080
55
VITE_SHORT_BASE_URL=http://localhost:8080/user
6-
VITE_LANDING_PAGE_URL=http://stage.tb.pro/appointment
76
# Set true to activate polling for dev server
87
VITE_SERVER_WATCH_POLLING=
98
VITE_SERVER_WATCH_INTERVAL=

frontend/.env.prod.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ VITE_API_URL=appointment.tb.pro/api/v1/
33
VITE_BASE_URL=appointment.tb.pro
44
VITE_API_SECURE=true
55
VITE_SHORT_BASE_URL=apt.mt
6-
VITE_LANDING_PAGE_URL=http://tb.pro/appointment
76

87
# -- Sentry --
98
VITE_SENTRY_DSN=https://66f57328baac4929be7d62b77f41b510@o4505428107853824.ingest.sentry.io/4505428280279040

frontend/.env.stage.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ VITE_API_URL=appointment-stage.tb.pro/api/v1/
33
VITE_BASE_URL=appointment-stage.tb.pro
44
VITE_API_SECURE=true
55
VITE_SHORT_BASE_URL=stage.apt.mt
6-
VITE_LANDING_PAGE_URL=http://stage.tb.pro/appointment
76

87
# -- Sentry --
98
VITE_SENTRY_DSN=https://66f57328baac4929be7d62b77f41b510@o4505428107853824.ingest.sentry.io/4505428280279040

frontend/.env.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# -- Frontend --
44
VITE_BASE_URL=localhost:8080
55
VITE_SHORT_BASE_URL=localhost:8080/user
6-
VITE_LANDING_PAGE_URL=http://stage.tb.pro/appointment
76

87
# -- Backend API --
98
VITE_API_URL=localhost

frontend/src/views/HomeView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ onMounted(() => {
1010
if (user.authenticated) {
1111
router.push('/dashboard');
1212
} else {
13-
window.location.href = import.meta.env.VITE_LANDING_PAGE_URL;
13+
router.push('/login');
1414
}
1515
});
1616
</script>

0 commit comments

Comments
 (0)