Hi,
This PR adds some demo pages for development.
I am sure you have something similar running for your dev environment
This solution checks
const isDev = process.env.ROLLUP_WATCH === 'true';
and runs the demo server just for yarn dev (the --watch option sets ROLLUP_WATCH internally)
The demo pages are just very simple static pages - could be improved - just feedback.
I also had a version using Astro - which turned out to become to complex - and sometimes had conflicts. So I stayed with plain simple static pages - which can easily be understood, and altered by devs.
There is also a simple demo/chatConfig.js for general settings (like ChatID, apiHost)
Let me know if it's useful - then I could add some documentation.
Hi, This PR adds some demo pages for development. I am sure you have something similar running for your dev environment
This solution checks
const isDev = process.env.ROLLUP_WATCH === 'true';
and runs the demo server just foryarn dev
(the --watch option sets ROLLUP_WATCH internally)The demo pages are just very simple static pages - could be improved - just feedback. I also had a version using Astro - which turned out to become to complex - and sometimes had conflicts. So I stayed with plain simple static pages - which can easily be understood, and altered by devs.
There is also a simple demo/chatConfig.js for general settings (like ChatID, apiHost)
Let me know if it's useful - then I could add some documentation.