Skip to content

Commit

Permalink
Update link to loclynew.netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasofizada committed Jun 2, 2022
1 parent ac74083 commit fcd2a8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app.configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default ((): AppConfig => {
}

if (process.env.APP_ENV === 'prod') {
const sharedConfig = shared('https://locky.vercel.app');
const sharedConfig = shared('https://loclynew.netlify.app');

return {
...sharedConfig,
Expand Down
3 changes: 2 additions & 1 deletion src/auth/AuthController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class AuthController {
@Body() requestAuthRequest: RequestAuthRequest,
@AnonymousIdentity() identity: null,
): Promise<void> {
console.log('AUTH');
await this.requestAuth.execute({ port: requestAuthRequest });
}

Expand Down Expand Up @@ -84,7 +85,7 @@ export class AuthController {
this.authCookieConfig,
);

return response.redirect('https://locly.netlify.app/auth/success');
return response.redirect('https://loclynew.netlify.app/auth/success');
}

// TODO: GET 'logout' causes routing conflicts with GET ':token'
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export function setupNestApp(app: INestApplication) {
);

app.enableCors({
origin: true, /*[/https:\/\/locly.netlify.app/, /.*test-cors\.org/],*/
credentials: true,
origin: true /*[/https:\/\/locly.netlify.app/, /.*test-cors\.org/],*/,
credentials: true,
});

app.useGlobalFilters(new CustomExceptionFilter());
Expand All @@ -32,7 +32,7 @@ export function setupNestApp(app: INestApplication) {

async function bootstrap() {
const app = await NestFactory.create(AppModule, {
bodyParser: false
bodyParser: false,
});
setupNestApp(app);
await app.listen(process.env.PORT || 3000);
Expand Down

0 comments on commit fcd2a8d

Please sign in to comment.