Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 16:47
· 1 commit to main since this release
bc70d79

flashpoint v0.4.0

Ports are declared, not injected. flashpoint no longer sets PORT, FLASHPOINT_API_URL, FLASHPOINT_WEB_URL or FLASHPOINT_WEB_PORT, and no longer adds --port/--strictPort to your dev script. Your app runs exactly as it does without flashpoint, with its own ports and its own Vite proxy config.

Tell flashpoint which ports your app listens on with --api-port / --web-port or api.port / web.port in flashpoint.toml. They default to 8080 and 5173, so most projects need no config. flashpoint uses them only to observe:

  • the status bar URLs;
  • readiness, which is the port accepting a connection;
  • waiting for the API port before a restart;
  • the 503 page while no server is up.

If a port never comes up, it says "API not listening on :8080 (check --api-port)".

Upgrading

  • If your server read PORT, or your Vite config read FLASHPOINT_API_URL, give them their own values, then tell flashpoint the ports.
  • api.health, api.host, api.port_env, the FLASHPOINT_API_PORT / FLASHPOINT_WEB_PORT variables, port 0 and the {port} / {api_url} placeholders in web.command are gone.

Changelog

  • 6169e68 feat!: declare the app's ports instead of injecting them

Install

brew install danielloader/tap/flashpoint

or go install github.com/danielloader/flashpoint/cmd/flashpoint@v0.4.0, or download a binary below (macOS and Linux, amd64 and arm64).