refactor: get GIT_COMMIT and APP_VERSION from import.meta.env (#592)
This commit is contained in:
@@ -116,7 +116,7 @@ const SettingsPage = forwardRef(({ index }: { index?: number }, ref) => {
|
||||
</div>
|
||||
<div className="flex gap-2 items-center">
|
||||
<div className="text-muted-foreground">
|
||||
v{__APP_VERSION__} ({__GIT_COMMIT__})
|
||||
v{import.meta.env.APP_VERSION} ({import.meta.env.GIT_COMMIT})
|
||||
</div>
|
||||
<ChevronRight />
|
||||
</div>
|
||||
|
||||
3
src/vite-env.d.ts
vendored
3
src/vite-env.d.ts
vendored
@@ -5,7 +5,4 @@ declare global {
|
||||
interface Window {
|
||||
nostr?: TNip07
|
||||
}
|
||||
|
||||
const __GIT_COMMIT__: string
|
||||
const __APP_VERSION__: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user