discuit icon indicating copy to clipboard operation
discuit copied to clipboard

A Different way of loading config information

Open Codycody31 opened this issue 10 months ago • 1 comments

Rather than rebuild the UI every time we update the config.yaml, what if we had a path called say /config.json that would be updated by the server itself, which then can be used by the UI, this would help save some time as it would not need to rebuild the UI. For reference Woodpecker CI does something similar for their UI.

Edit: It seems this may not be possible with the use of Webpack, But it's always worth a try

Codycody31 avatar Apr 19 '24 01:04 Codycody31

So from what I can see, the web-config.js is just configuration for the user, and doesn't actually update the UI. It still needs to build the UI with Vite every time it's updated, which is what Discuit does as well.

This is because JSX files can't be built to JS without a builder, which is basically what Webpack is doing here.

noClaps avatar Apr 19 '24 19:04 noClaps