v0.13.2 : fix admin

This commit is contained in:
2026-02-26 13:59:48 +01:00
parent c2a32f11b8
commit 04c4f7839f
8 changed files with 49767 additions and 12977 deletions

View File

@@ -1,13 +1,21 @@
import type { Core } from "@strapi/strapi";
export default {
/**
* An asynchronous register function that runs before
* your application is initialized.
*
* This gives you an opportunity to extend code.
*/
register(/* { strapi }: { strapi: Core.Strapi } */) {},
register( { strapi }: { strapi: Core.Strapi } ) {
strapi.server.use(async (ctx, next) => {
if (ctx.req?.socket) {
(ctx.req.socket as any).encrypted = true;
}
await next();
});
},
/**
* An asynchronous bootstrap function that runs before