diff --git a/app.configuration.ts b/app.configuration.ts index 19d16d0..c17eb83 100644 --- a/app.configuration.ts +++ b/app.configuration.ts @@ -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, diff --git a/src/auth/AuthController.ts b/src/auth/AuthController.ts index 7828112..fe7f722 100644 --- a/src/auth/AuthController.ts +++ b/src/auth/AuthController.ts @@ -49,6 +49,7 @@ export class AuthController { @Body() requestAuthRequest: RequestAuthRequest, @AnonymousIdentity() identity: null, ): Promise { + console.log('AUTH'); await this.requestAuth.execute({ port: requestAuthRequest }); } @@ -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' diff --git a/src/main.ts b/src/main.ts index a90cd9c..15081ef 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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()); @@ -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);