I made a mistake in my suggestion above. The first line should be const strapi = require('@strapi/strapi');
The key change between v4 and v5 is the second line.
I made a mistake in my suggestion above. The first line should be const strapi = require('@strapi/strapi');
The key change between v4 and v5 is the second line.