mirror of
https://github.com/evroon/bracket.git
synced 2026-07-31 10:16:46 -04:00
This PR migrates formatting in `frontend/` from Prettier to `oxfmt`,
including script wiring and dependency cleanup. It removes the Prettier
plugin/config path so formatting is handled by a single tool.
- **Script migration**
- Renamed/rewired formatting scripts in `frontend/package.json`:
- `prettier:check` → `format:check` (`oxfmt --check .`)
- `prettier:write` → `format:write` (`oxfmt .`)
- Updated dependent scripts:
- `test` now runs `pnpm run format:write`
- `openapi-ts` now runs `pnpm run format:write` after generation
- **Dependency cleanup**
- Removed `prettier-plugin-organize-imports` from `dependencies`
- Removed `prettier` from `devDependencies`
- Added `oxfmt` (latest stable at update time)
- **Config removal**
- Deleted `frontend/.prettierrc.js` (no longer used after migration)
- **Lockfile alignment**
- Updated `frontend/pnpm-lock.yaml` to reflect the dependency and script
ecosystem change
```json
{
"scripts": {
"format:check": "oxfmt --check .",
"format:write": "oxfmt .",
"openapi-ts": "openapi-ts && pnpm run format:write",
"test": "tsc && pnpm run format:write"
}
}
```
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Erik Vroon <11857441+evroon@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
---
|
|
title: Deployment
|
|
---
|
|
|
|
# Deployment
|
|
|
|
The guides in this directory explain how to run Bracket in production. If you quickly want to get up
|
|
and running, please read [quickstart.md](/docs/running-bracket/quickstart.mdx).
|
|
|
|
## Configuration
|
|
|
|
### Backend configuration
|
|
|
|
The following configuration variables need to be adjusted for the backend to run it in production:
|
|
|
|
- `JWT_SECRET`: Create a random secret using `openssl rand -hex 32`
|
|
- `CORS_ORIGINS`: Set frontend domain names for CORS.
|
|
For example: `CORS_ORIGINS=https://frontend.bracket.com`.
|
|
- `ADMIN_EMAIL` and `ADMIN_PASSWORD`: It's important to not leave the admin credentials to the
|
|
default values.
|
|
- `ALLOW_INSECURE_HTTP_SSO`: Must be set to `false`
|
|
|
|
Optional:
|
|
|
|
- `SENTRY_DSN`: The [Sentry](https://sentry.io) DSN for monitoring and error tracking
|
|
- `BASE_URL`: The base url of the API used for SSO
|
|
|
|
See [the config docs](/docs/running-bracket/configuration.mdx) for more information.
|
|
|
|
### Frontend configuration
|
|
|
|
The following configuration variables need to be adjusted for the frontend to run it in production:
|
|
|
|
- `VITE_API_BASE_URL`: The base URL of the backend API to which the frontend sends requests.
|
|
For example: `https://api.bracket.com`
|
|
|
|
Optional:
|
|
|
|
- `VITE_HCAPTCHA_SITE_KEY`: The HCaptcha key used for captcha challenges when creating new
|
|
accounts. You get the secret when you create a new site in HCaptcha. If left blank, HCaptcha will
|
|
be disabled for your site.
|
|
|
|
## Running in production
|
|
|
|
There's a few ways to run Bracket (frontend and backend) in production, such as via docker-compose
|
|
and Nomad. The frontend can also be deployed to a cloud service like Vercel. See the other pages in
|
|
this category for more details per platform.
|