I was having to same issue. I found that the type naming was what broke this.
If you were to use strapiHomePage rather than STRAPI_HOME_PAGE that should allow the optional type. This does seem to break the Typescript definition creation if you’re trying to use the non nullable options.
2 Likes