Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Do not minify the frontend code by default for easier auditing. #77

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ may not be feasible:
* **End-to-end encryption**: All communication is encrypted
using [AES256-GCM](https://en.wikipedia.org/wiki/Galois/Counter_Mode).
* **Zero-trust Relay**: The relay only forwards encrypted messages and cannot read them.
* **Static frontend**: The entire frontend code is within browser, making it easier to audit.
* **Static frontend**: The entire frontend code is within browser un-minified, making it easier to audit.
* **On-premise hosting**: Both frontend and relay can be hosted on your own infrastructure and agents can be configured
to only connect to these relays for complete control.

Expand Down
3 changes: 3 additions & 0 deletions frontend/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import icon from "astro-icon";
export default defineConfig({
vite: {
plugins: [webtermVersionPlugin()],
build: {
minify: import.meta.env.APP_ENABLE_MINIFY === "true",
},
},

integrations: [icon()],
Expand Down
Loading