deploy en-us e unit tests melhorado
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 7s
DevSecOps Enterprise Pipeline / security-gate-and-deploy (pull_request) Failing after 7s
This commit is contained in:
+7
-3
@@ -85,6 +85,10 @@ app.post('/api/contact', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`[Apex Server] Running on port ${PORT}`);
|
||||
});
|
||||
// Export the app for testing, but only listen if run directly
|
||||
if (require.main === module) {
|
||||
app.listen(PORT, () => {
|
||||
console.log(`[Apex Server] Running on port ${PORT}`);
|
||||
});
|
||||
}
|
||||
module.exports = app;
|
||||
Reference in New Issue
Block a user