mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
ci: fix version injection to be a docker build arg
This commit is contained in:
@@ -3,14 +3,9 @@ import tailwindcss from "@tailwindcss/vite";
|
||||
import { defineConfig } from "vite";
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
import { reactRouterHonoServer } from "react-router-hono-server/dev";
|
||||
import { execSync } from "node:child_process";
|
||||
|
||||
const getVersion = () => {
|
||||
try {
|
||||
return execSync("git describe --tags --always").toString().trim();
|
||||
} catch {
|
||||
return "dev";
|
||||
}
|
||||
return process.env.VITE_APP_VERSION || "dev";
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
Reference in New Issue
Block a user