Merge pull request #3572 from bluewave-labs/fix/version-from-package-json

fix(client): source app version from package.json
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-04-24 10:12:20 -07:00
commit e909ddd78b
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "client",
"private": true,
"version": "0.0.0",
"version": "3.6.1",
"type": "module",
"scripts": {
"dev": "vite",
+3 -1
View File
@@ -3,11 +3,13 @@ import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import path from "path";
import { fileURLToPath } from "url";
import { readFileSync } from "fs";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default defineConfig(({}) => {
let version = "3.6.1";
const pkg = JSON.parse(readFileSync(path.resolve(__dirname, "package.json"), "utf-8"));
const version = pkg.version;
const allowedHosts = process.env.VITE_ALLOWED_HOSTS
? process.env.VITE_ALLOWED_HOSTS.split(",").map((h) => h.trim())