v0.13.2 : fix admin
This commit is contained in:
File diff suppressed because it is too large
Load Diff
10
src/index.ts
10
src/index.ts
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user