Commit f87fdf4
committed
fix: Export contentTypes in server index to register session schema
CRITICAL FIX: The contentTypes were never exported from server/src/index.js,
causing Strapi to not register the session content-type.
- Added: const contentTypes = require('./content-types')
- Added: contentTypes to module.exports
- This registers plugin::magic-sessionmanager.session with Strapi
Fixes the root cause of 'Cannot destructure property kind' error.
Without this export, Strapi doesn't know the session content-type exists.1 parent b4251a3 commit f87fdf4
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
0 commit comments