server/react/render-static.jsx
Function renderStatic
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default async function renderStatic(ctx, next) {
const assets = await getStaticAssets()
const user = ctx.req.user ? ctx.req.user.json : {}
// at this point the cookie is guaranteed to exist due to previous middleware