Rails is a powerful tool to build backend fast.Nextjs is a powerful tool to build frontend fast.Both are opinionated in terms of file structure and how common things should be done.Use Rails purely as APIhttps://guides.rubyonrails.org/api_app.htmlUse Postgres as DBRails - Part 2 - Connecting rails with Supabase/RDS