Custom Directory Sites

I am working on building custom directory sites using Next.js and some other tech stacks because of their performance for SEO, server-side components, etc, especially on mobile. WordPress gets hacked because of outdated plugins, and platforms like Directify seem to limit options for monetizing. Looking for any feedback. Thanks!