Not as much as fear mongers are pushing.
Of course Apple is not intending on selling computers all of which will last 30 years.
Amortization of desktops is 5 years for business. A home user could shoot for 10 years of use.
It's unlikely that 20 years of use will occur with current generation of computing devices.
This is, intended or not, roughly equivalent to a lifetime of an automobile is normal USA use. 10 years is about it for a commuting car. Somewhere between 150k and 200k miles is about it for an auto before it's just too much trouble to keep running.
No one is asking for computers that last 30 years. Even at today's reduced rate of technology improvements, today's computers will be at best docoration -- perhaps an amusement in 30 years.
However, 10 years is reasonable. My 2009 Mac Mini died after about 10 years and didn't feel slighted despite my lingering affinity for it. It was a workhorse and fine for day-to-day tasks right up until the end.
Even if businesses dump their desktops and laptops after 2-5 years, they shouldn't be disposable. They should be available for a 2nd life with someone else (the 1st and 2nd R of Reduce, Reuse, Recycle).
Modern cars generally last at least 10 years and there any many solid cars from the early naughts still on the road. Your better Honda and Toyota cars will do 300K well-maintained, which is 25 years @ 12K miles/year.
This is of course aside from the vintage and classics people have been keeping running for up to 100 years. Going back before the 60s and 50s you're probably getting into custom fabricated parts, though. More practical are many 80s and 90s cars sold on BringATrailer. It's not that all the parts are still available but many are and rarely are otherwise solid cars junked because one part wore out.
Point is, it should be reasonable to keep a premium computer like a Mac running well for 10 years. As year-over-year improvements are slowing, computers should be lasting longer not shorter. That includes OS support (I suggest 7 years of full support up to the hardware's capability and a final 2-3 years of legacy/security-only fixes) and replaceability of "consumables" and minor parts.