Commit graph

13 commits

Author SHA1 Message Date
Andrew Pennington
ec158c0cdf
Added automatic docker build on merge to master
This PR includes:
- Automatic build & push to docker hub when pushing to master, or when triggering a workflow dispatch on master
- Automatic docker build on pull requests to validate changes
- Updated the docker-compose.yaml to use the container images, rather than building locally
- Added support for defining backend settings using the container environment 
  -> All options defined in config.toml can now be loaded instead from the environment
  -> Order of precedence is environment definition, config.toml, and finally default inline configuration defined in config.ts
- Added support for defining frontend settings using the container environment
  -> Added a dynamic api route to load the container environment definitions on the server, and provide them to the client
  -> Added a library function to fetch from the newly created API, caching the response in the session storage
  -> Modified existing calls to `process.env` to use the new library function
  -> Left the initial statically compiled environment definitions in place as a backup definition, if no environment definitions are provided

Remaining tasks todo before able to merge to [ItzCrazyKns/Perplexica](https://github.com/ItzCrazyKns/Perplexica):
- Add secret definitions for `DOCKER_USERNAME` and `DOCKER_PASSWORD` to [ItzCrazyKns/Perplexica](https://github.com/ItzCrazyKns/Perplexica) to ensure push to dockerhub works on base branch
- Update documentation with information about changes
2024-08-21 00:40:34 +01:00
ItzCrazyKns
27f8cfd212
feat(toast): fix theme colors 2024-07-25 20:33:56 +05:30
ItzCrazyKns
c74e16e01c
feat(chats): add delete functionality 2024-07-02 10:51:47 +05:30
ItzCrazyKns
c51ec8ff0f
feat(app): implement library feature 2024-06-29 11:09:51 +05:30
ItzCrazyKns
f7d1364f30
feat(discover): remove unadded page 2024-06-28 09:34:40 +05:30
ItzCrazyKns
dcbcab3122
feat(theme-components): use default exports 2024-05-31 11:02:00 +05:30
WanQuanXie
a5978d544c update(ui): re-manage theme config 2024-05-27 11:49:09 +08:00
WanQuanXie
996cc1b674 feat: adaptive light mode 2024-05-24 21:18:10 +08:00
WanQuanXie
f9664d48e7 feat: setup theme context config 2024-05-24 18:20:15 +08:00
ItzCrazyKns
c852bee8ed
feat(app): add suspense boundary 2024-05-11 21:19:38 +05:30
ItzCrazyKns
e3fef3a1be
feat(chat-window): add error handling 2024-05-04 14:56:54 +05:30
ItzCrazyKns
8f3de05a38
feat(package): Update dev script 2024-04-09 18:48:26 +05:30
ItzCrazyKns
d1c74c861e
Initial commit 2024-04-09 16:21:05 +05:30