enhance-dev / enhance-dev/fastify-plugin

req.session is not available with Fastify

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

During development (with `sandbox`) everything works, but when I would like to deploy with `Fastify`, the `req.session` is not available.

```
"statusCode": 500,
"error": "Internal Server Error",
"message": "Cannot destructure property '_idx' of 'req.session' as it is undefined."
}
```

Reproduce:
- Clone [this](https://github.com/andrasbacsai/enhancedev-fastify) repository.
- `pnpm install`
- Test if it's working with `pnpm dev` -> Yes it will.
- Test if it's working with `pnpm start` -> Nope.

Let me know if you need any further information.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.