fix(local): switch values back to local for local testing

Will need to figure out a method to automatically detect if backend is running locally or remotely to avoid switching URIs back and forth constantly
This commit is contained in:
Nicolas Drolet 2025-11-03 15:43:10 -05:00
parent c0fbad006d
commit 29f131e307
3 changed files with 44 additions and 43 deletions

View File

@ -12,7 +12,8 @@ export class AuthController {
@Get('/callback') @Get('/callback')
@UseGuards(OIDCLoginGuard) @UseGuards(OIDCLoginGuard)
loginCallback(@Req() req: Request, @Res() res: Response) { loginCallback(@Req() req: Request, @Res() res: Response) {
res.redirect('http://10.100.251.2:9011/#/login-success'); // res.redirect('http://10.100.251.2:9011/#/login-success');
res.redirect('http://localhost:9000/#/login-success');
} }
@Get('/me') @Get('/me')

View File

@ -46,7 +46,7 @@ async function bootstrap() {
// Enable CORS // Enable CORS
app.enableCors({ app.enableCors({
origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013'], origin: ['http://10.100.251.2:9011', 'http://10.100.251.2:9012', 'http://10.100.251.2:9013', 'http://localhost:9000'],
credentials: true, credentials: true,
}); });

View File

@ -40,7 +40,7 @@ export const toHHmmFromDate = (input: Date | string): string => {
//converts Date format to string //converts Date format to string
export const toDateFromString = (ymd: string | Date): Date => { export const toDateFromString = (ymd: string | Date): Date => {
return new Date(`${ymd}T00:00:00:000Z`); return new Date(ymd);
} }
export const toUTCDateFromString = (iso: string | Date) => { export const toUTCDateFromString = (iso: string | Date) => {