Skip to content

Commit f87fdf4

Browse files
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

File tree

server/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const register = require('./register');
44
const bootstrap = require('./bootstrap');
55
const destroy = require('./destroy');
66
const config = require('./config');
7+
const contentTypes = require('./content-types');
78
const routes = require('./routes');
89
const controllers = require('./controllers');
910
const services = require('./services');
@@ -14,6 +15,7 @@ module.exports = {
1415
bootstrap,
1516
destroy,
1617
config,
18+
contentTypes,
1719
routes,
1820
controllers,
1921
services,

0 commit comments

Comments
 (0)