diff options
author | Joseph Ditton <jditton.atomic@gmail.com> | 2021-11-16 19:14:46 -0700 |
---|---|---|
committer | Joseph Ditton <jditton.atomic@gmail.com> | 2021-11-16 19:14:46 -0700 |
commit | cba40b6aff598e821199c186c5f1795e5252bab9 (patch) | |
tree | a5e4ad3bae238c3921e10956f21f84ca352c7d6d /src/main.ts | |
parent | e5f684001370d6f6348fd26f97bc26c765deb934 (diff) | |
download | locchat-cba40b6aff598e821199c186c5f1795e5252bab9.tar.gz locchat-cba40b6aff598e821199c186c5f1795e5252bab9.zip |
separate client and server apps
Diffstat (limited to 'src/main.ts')
-rw-r--r-- | src/main.ts | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/main.ts b/src/main.ts deleted file mode 100644 index 4483c3b..0000000 --- a/src/main.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { config } from 'dotenv'; -import * as fs from 'fs'; -import { NestFactory } from '@nestjs/core'; -import { AppModule } from './app.module'; - -config(); - -async function bootstrap() { - let httpsOptions; - if (process.env.NODE_ENV === 'development') { - httpsOptions = { - key: fs.readFileSync('./private-key.pem'), - cert: fs.readFileSync('./public-cert.pem'), - } - } - const app = await NestFactory.create(AppModule, { - httpsOptions - }); - await app.listen(process.env.PORT); -} -bootstrap(); |