Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const startApp = async () => {
process.env.NODE_ENV = 'production';
mm.env('prod');
app = mm.app({
baseDir: __dirname,
framework: 'beidou',
});
await app.ready();
await app.httpRequest().get('/');
};