Skip to content

Commit

Permalink
chore: fix ENV VAR NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
anasjaidi committed Nov 12, 2024
1 parent 2ad5a35 commit 21fa650
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ yarn-error.log*
# Misc
.DS_Store
*.pem
.pnpm*
2 changes: 1 addition & 1 deletion apps/api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ provider:
SYGAR_JWT_SECRET_TOKEN: ${env:SYGAR_JWT_SECRET_TOKEN}
SYGAR_JWT_EXPIRATION_TIME: ${env:SYGAR_JWT_EXPIRATION_TIME}
SYGAR_MAILER_HOST: ${env:SYGAR_MAILER_HOST}
SYAGR_MAILER_PORT: ${env:SYAGR_MAILER_PORT}
SYAGR_MAILER_PORT: ${env:SYGAR_MAILER_PORT}
SYGAR_MAILER_USERNAME: ${env:SYGAR_MAILER_USERNAME}
SYGAR_MAILER_PASSWORD: ${env:SYGAR_MAILER_PASSWORD}
SYGAR_MAILER_FROM_ADDRESS: ${env:SYGAR_MAILER_FROM_ADDRESS}
Expand Down
45 changes: 45 additions & 0 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,48 @@ export const handler: Handler = async (event: any, context: Context, callback: C
}
return server(event, context, callback); // Update this line
};

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// import { NestFactory } from '@nestjs/core';
// import { AppModule } from './app.module';
// import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
// import { join } from 'path';
// import { NestExpressApplication } from '@nestjs/platform-express';
// import { ValidationPipe } from '@nestjs/common';
//
// async function bootstrap() {
// const app = await NestFactory.create<NestExpressApplication>(AppModule);
//
// app.enableCors({
// origin: 'http://localhost:3000',
// credentials: true,
// })
// const config = new DocumentBuilder()
// .setTitle('API Documentation')
// .setDescription('API description')
// .setVersion('1.0')
// .addTag('api')
// .build();
//
// const document = SwaggerModule.createDocument(app, config);
// SwaggerModule.setup('api/docs', app, document);
//
// app.useStaticAssets(join(__dirname, '..', 'public'));
// app.setBaseViewsDir(join(__dirname, '..', 'views'));
// app.setViewEngine('ejs');
//
// app.useGlobalPipes(new ValidationPipe({
// whitelist: true,
// transform: true,
// forbidNonWhitelisted: true,
// transformOptions: {
// enableImplicitConversion: true,
// },
// }));
//
// await app.listen(1338);
// }
//
// bootstrap()
28 changes: 28 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 21fa650

Please sign in to comment.