Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix build date, use new endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT committed Apr 1, 2024
1 parent 3e39943 commit 2fa37cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ export default function MainLayout() {
"No commit information available."
)}
<br />
This version of Ephemeral was built on {__BUILD_DATE__}
This version of Ephemeral was built on{" "}
{__BUILD_DATE__.toLocaleString()}
</DialogDescription>
</DialogHeader>
</DialogContent>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Apps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Apps() {
const listRef = useRef<HTMLDivElement>(null);

useEffect(() => {
run(() => fetch("https://z1g-project.vercel.app/api/apps", { wisp: true }));
run(() => fetch("https://z1g-backend.vercel.app/api/apps", { wisp: true }));
}, []); // eslint-disable-line react-hooks/exhaustive-deps

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/// <reference types="vite/client" />

declare const __BUILD_DATE__: string;
declare const __BUILD_DATE__: Date;
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ export default defineConfig({
},
},
define: {
__BUILD_DATE__: JSON.stringify(new Date().toLocaleString()),
__BUILD_DATE__: JSON.stringify(new Date()),
},
});

0 comments on commit 2fa37cc

Please sign in to comment.