I don't understand why they're being bundled together with the page, pushing it over the size limit.

I don't understand why they're being bundled together with the page, pushing it over the size limit. It's like if all my API routes got combined into one, and then also got combined with the pages in which they're used. It wouldn't make much sense, because they should all be independent and all have their own size limit.

I may be using them wrong but I'm using server actions as a replacement for my API routes(at least ones that mutate data), but it seems that just using them instead makes for a less efficient app because everythings bundled together like it wouldn't otherwise be?
(I do realize I can easily avoid this problem by just using API routes instead but that's much less convenient)
Was this page helpful?