opencode/packages
Alexey Volkov ad930e0ba2
feat: App - Support setting base URL during build
This is needed to host OpenCode app under under some URL prefix.
This minimal change makes it possible to build OpenCode Web App with VITE_BASE_URL="/subdir/" and have it run under `http://<host>:<port>/subdir/` instead of root (`http://<host>:<port>/`).

Set `VITE_BASE_URL` env var during build. This automatically sets the `base` in Vite config. Vite generates correct URLs in `index.html`.
`import.meta.env.BASE_URL` is also used in routers. See https://vite.dev/config/shared-options#base
You can also set `VITE_OPENCODE_SERVER_BASE_URL` to specify the base URL prefix for the server.

Usage:
```
% VITE_BASE_URL="/XXX" VITE_OPENCODE_SERVER_BASE_URL="/" bun dev
$ vite
(!) "base" option should start with a slash.

  VITE v7.1.4  ready in 320 ms

  ➜  Local:   http://localhost:3000/XXX
```
2026-03-19 22:50:05 -07:00
..
app feat: App - Support setting base URL during build 2026-03-19 22:50:05 -07:00
console go: upi translation 2026-03-19 18:54:32 -04:00
containers ci 2026-01-29 23:17:57 -05:00
desktop release: v1.2.27 2026-03-16 02:33:48 +00:00
desktop-electron electron: lazily read updater enabled 2026-03-19 21:47:47 +08:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
enterprise go: upi payment 2026-03-19 18:44:24 -04:00
extensions/zed release: v1.2.27 2026-03-16 02:33:48 +00:00
function go: upi payment 2026-03-19 18:44:24 -04:00
identity
opencode patch solid to try fix memo undefined under transition bug (#18338) 2026-03-20 14:58:35 +10:00
plugin feat: integrate support for multi step auth flows for providers that require additional questions (#18035) 2026-03-18 11:36:19 -05:00
script refactor: replace bun semver with npm semver package 2026-03-09 15:29:55 -04:00
sdk chore: generate 2026-03-19 17:52:50 +00:00
slack release: v1.2.27 2026-03-16 02:33:48 +00:00
storybook fix(storybook): restore build by mocking useLocation (#16472) 2026-03-07 09:55:43 -06:00
ui deslopity deslopity (#18343) 2026-03-20 05:24:27 +00:00
util release: v1.2.27 2026-03-16 02:33:48 +00:00
web chore: generate 2026-03-19 04:46:39 +00:00