File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { AppModule } from '../dist/src/app.module';
1313let app ;
1414
1515// TODO: check if code below an be unified with `main.ts` so there is no duplication
16- module . exports = async function handler ( req , res ) {
16+ export default async function handler ( req , res ) {
1717 // Bootstrap our NestJS app on cold start
1818 if ( ! app ) {
1919 const logLevel = process . env . LOG_LEVEL === 'info' ? 'log' : process . env . LOG_LEVEL ;
@@ -65,4 +65,4 @@ module.exports = async function handler(req, res) {
6565 const instance = httpAdapter . getInstance ( ) ;
6666
6767 instance ( req , res ) ;
68- } ;
68+ }
Original file line number Diff line number Diff line change 1919 "routes" : [
2020 {
2121 "src" : " /(.*)" ,
22- "dest" : " api/main.cjs "
22+ "dest" : " api/main.js "
2323 }
2424 ]
2525}
You can’t perform that action at this time.
0 commit comments