apostrophecms / apostrophe

A full-featured, open-source content management framework built with Node.js that empowers organizations by combining in-context editing and headless architecture in a full-stack JS environment.
https://apostrophecms.com
MIT License
4.34k stars 590 forks source link

Option to opt-out for public bundles #4441

Open daklik opened 6 months ago

daklik commented 6 months ago

The problem to solve

With the possibility we have now to use an external front integration like apostrophe-astro we should have an option to tell Apostrophe to build only admin UI (aka apos) bundle, as the public front end is no more served by Apostrophe.

Proposed solution

Add an option to @apostrophecms/asset in order to tell the module to build only the admin UI (aka. apos) bundle.

boutell commented 6 months ago

While a public UI bundle with no actual code in it doesn't take long, zero would be a more appropriate amount of time for sure.

daklik commented 5 months ago

In fact, the purpose would be also for dev environment, where APOS_DEV is not set, to build nothing then on a server restart in this case, not even the src build.