feat: display app version in Settings dialog (#337)

This commit is contained in:
Dayuan Jiang
2025-12-21 00:55:54 +09:00
committed by GitHub
parent 938faff6b2
commit 68ea4958b8
2 changed files with 9 additions and 0 deletions

View File

@@ -452,6 +452,11 @@ export function SettingsDialog({
/> />
</div> </div>
</div> </div>
<div className="pt-4 border-t border-border/50">
<p className="text-[0.75rem] text-muted-foreground text-center">
Version {process.env.APP_VERSION}
</p>
</div>
</DialogContent> </DialogContent>
</Dialog> </Dialog>
) )

View File

@@ -1,8 +1,12 @@
import type { NextConfig } from "next" import type { NextConfig } from "next"
import packageJson from "./package.json"
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
/* config options here */ /* config options here */
output: "standalone", output: "standalone",
env: {
APP_VERSION: packageJson.version,
},
} }
export default nextConfig export default nextConfig