Skip to content

Commit c8cee01

Browse files
Revert "feat: test strapi integration deploy"
This reverts commit 7a2d148.
1 parent 3153e5c commit c8cee01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { AppModule } from '../dist/src/app.module';
1313
let 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+
}

apps/api-harmonization/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"routes": [
2020
{
2121
"src": "/(.*)",
22-
"dest": "api/main.cjs"
22+
"dest": "api/main.js"
2323
}
2424
]
2525
}

0 commit comments

Comments
 (0)