feat(mcp): подготовить сервер и доступ к приёмке
This commit is contained in:
commit
bf3d50e1ff
3835 files changed
+537122
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import {safeReleaseUrl} from "./release-metadata"
|
||||
import packageJson from "@/package.json"
|
||||
|
||||
const packageVersion = packageJson.version
|
||||
|
||||
export function getAppVersion(): string {
|
||||
return process.env.NEXT_PUBLIC_APP_VERSION?.trim() || `${packageVersion}-dev`
|
||||
}
|
||||
|
||||
export function formatAppVersionLabel(version = getAppVersion()): string {
|
||||
return `v${version}`
|
||||
}
|
||||
|
||||
export function getReleaseUrl(): string | null {
|
||||
const value = process.env.NEXT_PUBLIC_RELEASE_URL?.trim()
|
||||
return safeReleaseUrl(value)
|
||||
}
|
||||
Reference in new issue
Block a user