Overriding Strapi landing page

System Information
  • Strapi Version: 3.6.1
  • Operating System: Linux Alpine
  • Database: MySQL
  • Node Version: 14.16.1
  • NPM Version: 6.14.12
  • Yarn Version: 1.22.5

Hi Strapinauts and Strapi Team,

I’ve spent some time customising the Strapi Admin pages which, thanks to the documentation is fairly trivial to do. Now I’m focussing on the Strapi landing page - you know the one, it’s shown when you hit the root page http://localhost:1337/

This page is served from app/node_modules/strapi/lib/middlewares/public/index.html but clearly, this is not the best place to customise the file because npm install will override it at some point.

What’s the best way to override this file and the various assets that it uses?

TIA!

1 Like

I did find this topic, which describes exactly what I’m after:

However, the issue I have when copying the index.html file into /public is that none of the templating seems to work and the page outputs this like <% if (strapi.config.environment === ‘development’ && isInitialised) { %> rather than what I would expect to see. What am I missing?