+
+ {formatBuildTime(__BUILD_TIME__)}
+
+
+declare global {
+ const __BUILD_TIME__: string;
+}
+
declare module "react" {
interface InputHTMLAttributes
{
webkitdirectory?: string;
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 37e2e17..8d968f9 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -8,6 +8,7 @@ export default defineConfig(() => {
plugins: [react()],
define: {
__STORYKIT_PORT__: JSON.stringify(String(backendPort)),
+ __BUILD_TIME__: JSON.stringify(new Date().toISOString()),
},
server: {
port: backendPort + 2172,
diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts
index 633dc71..3cfc5ab 100644
--- a/frontend/vitest.config.ts
+++ b/frontend/vitest.config.ts
@@ -3,6 +3,9 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [react()],
+ define: {
+ __BUILD_TIME__: JSON.stringify("2026-01-01T00:00:00.000Z"),
+ },
test: {
environment: "jsdom",
globals: true,