Perplexica/ui
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
..
app Added automatic docker build on merge to master 2024-08-21 00:40:34 +01:00
components Added automatic docker build on merge to master 2024-08-21 00:40:34 +01:00
lib Added automatic docker build on merge to master 2024-08-21 00:40:34 +01:00
public Initial commit 2024-04-09 16:21:05 +05:30
.env.example feat(app): revert port & network changes 2024-05-13 19:58:17 +05:30
.eslintrc.json Initial commit 2024-04-09 16:21:05 +05:30
.gitignore Initial commit 2024-04-09 16:21:05 +05:30
.prettierrc.js Initial commit 2024-04-09 16:21:05 +05:30
next.config.mjs Initial commit 2024-04-09 16:21:05 +05:30
package.json feat(package): bump version 2024-07-30 10:10:55 +05:30
postcss.config.js Initial commit 2024-04-09 16:21:05 +05:30
tailwind.config.ts update(ui): remove light-300 color level 2024-05-28 10:55:52 +08:00
tsconfig.json Initial commit 2024-04-09 16:21:05 +05:30
yarn.lock chore(ui): add next-themes 2024-05-24 17:32:14 +08:00