version bundled js

This commit is contained in:
Chris Wanstrath 2025-10-01 12:20:20 -07:00
parent 062640c390
commit ff88168e63

View File

@ -1,4 +1,5 @@
import type { FC } from "hono/jsx" import type { FC } from "hono/jsx"
import { GIT_SHA } from "../config"
export const Layout: FC = async ({ children, title }) => ( export const Layout: FC = async ({ children, title }) => (
<html lang="en"> <html lang="en">
@ -12,7 +13,7 @@ export const Layout: FC = async ({ children, title }) => (
<link href="/css/game.css" rel="stylesheet" /> <link href="/css/game.css" rel="stylesheet" />
<script type="importmap" dangerouslySetInnerHTML={{ __html: `{ "imports": { "@/": "/" } }` }} /> <script type="importmap" dangerouslySetInnerHTML={{ __html: `{ "imports": { "@/": "/" } }` }} />
<script src={process.env.NODE_ENV === "production" ? "/bundle.js" : "/js/main.js"} type="module" async></script> <script src={process.env.NODE_ENV === "production" ? `/bundle.js?${GIT_SHA}` : "/js/main.js"} type="module" async></script>
</head> </head>
<body data-mode="tall"> <body data-mode="tall">
<main> <main>