fix(nitro): pass req, res to ssr context (resolves #39)

This commit is contained in:
Pooya Parsa 2021-04-04 19:57:42 +02:00
parent c864c5a30c
commit 16cc09bd76

View File

@ -32,6 +32,8 @@ export async function renderMiddleware (req, res) {
const ssrContext = {
url,
req,
res,
runtimeConfig: {
public: config.public,
private: config.private