Skip to content

Commit

Permalink
Add some debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Nov 29, 2024
1 parent 7e6a240 commit f89ed6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
touch .env
echo PUBLIC_BACKEND_API_URL=http://localhost:8000/api >> .env
echo CI_TEST=1 >> .env
echo "WOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOWOW"
cat .env
- name: Create backend environment variables file
working-directory: ${{ env.backend-directory }}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/routes/(app)/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import type { PageServerLoad } from './$types';
import { CI_TEST } from '$lib/utils/constants';

const redirectURL = CI_TEST ? '/analytics' : '/analytics?refresh=1';
console.log(`[NEW_REDIRECT:1] ${CI_TEST}`);

export const load: PageServerLoad = async () => {
console.log(`[NEW_REDIRECT:2] ${CI_TEST}`);
redirect(301, redirectURL);
};
1 change: 1 addition & 0 deletions frontend/src/routes/(authentication)/login/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const actions: Actions = {

const next = url.searchParams.get('next') || '/';
const redirectURL = getSecureRedirect(next) + (CI_TEST ? '' : '?refresh=1');
console.log(`[NEW_REDIRECT:3] ${redirectURL}`);
redirect(302, redirectURL);
},
mfaAuthenticate: async (event) => {
Expand Down

0 comments on commit f89ed6c

Please sign in to comment.