mirror of
https://github.com/evroon/bracket.git
synced 2026-07-31 02:10:50 -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>
17 lines
570 B
Plaintext
17 lines
570 B
Plaintext
---
|
|
title: FAQ
|
|
---
|
|
|
|
# FAQ
|
|
|
|
## I ran Bracket with the default `docker-compose.yml` but I can't connect to the backend?
|
|
|
|
This is likely because you are trying to access Bracket on a different address than
|
|
`http://localhost:3000` in the browser. In that case, two things need to be changed:
|
|
|
|
- Change `VITE_API_BASE_URL` to the address of the backend, e.g `https://api.example.org`.
|
|
- You will also need to update `CORS_ORIGINS` to the address of the frontend, e.g.
|
|
`https://app.example.org`.
|
|
|
|
Please consult [configuration docs](configuration.mdx) for more information.
|