Join a funded startup that's growing quickly. These (supposedly) pay market rate salaries (although "market rate" is rather skewed in the Bay Area these days...it probably won't be FAANG-like). They're also always looking for people, and they have an immediate market for every feature they put out (which can be a big help in avoiding the burnout/depression that comes with a failed startup), and your financial outcomes on average are usually better than with early-stage pre-product-market-fit startups.