Skip to content

Conversation

atyrode
Copy link
Contributor

@atyrode atyrode commented May 4, 2025

This allows the app to send a refresh on the client if there is an update.

  • Introduced a new router for application-related endpoints, including a /build-info endpoint to serve current build information from a generated JSON file.
  • Implemented a Vite plugin to generate build-info.json during the build process, containing a unique build hash and timestamp.
  • Added a BuildVersionCheck component in the frontend to monitor build version changes and refresh the application when a new version is detected.
  • Updated existing routers to include necessary imports for the new functionality.

atyrode added 2 commits May 4, 2025 19:10
- Introduced a new router for application-related endpoints, including a `/build-info` endpoint to serve current build information from a generated JSON file.
- Implemented a Vite plugin to generate `build-info.json` during the build process, containing a unique build hash and timestamp.
- Added a `BuildVersionCheck` component in the frontend to monitor build version changes and refresh the application when a new version is detected.
- Updated existing routers to include necessary imports for the new functionality.
…configuration

- Removed the runtime configuration generation from the startup script, streamlining the application startup process.
- Added a new endpoint `/config` in the app router to serve application configuration, fetching values from environment variables.
- Updated the frontend to retrieve configuration dynamically from the new API instead of relying on a static runtime config file.
- Refactored the PostHog initialization to use the fetched configuration, improving analytics setup.
@atyrode atyrode merged commit 3f613b6 into main May 4, 2025
1 check passed
@atyrode atyrode deleted the refresh-on-update branch May 4, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant