tyn

Results 2 comments of tyn

It is possible to use async await in nestjs fastify to solve this problem ```typescript app.get(renderPath, async (req, res) => { await new Promise((resolve, reject) => { const stream =...

you can do it with ```typescript app.get(renderPath, async (req: any, res: any) => { await new Promise((resolve, reject) => { const stream = fs.createReadStream(indexFilePath); stream.on("data", (chunk) => { res.type('text/html').send(chunk); resolve(undefined);...