You can delegate architecture to agents, as long as you know different architectures and decide which one is the most fit for a given scenario. AI can choose one but it will usually pick the one that is more present in the training corpus.
React + NextJS is a terrible architectural decision for most projects that LLMs recommend all the time.