diff --git a/README.md b/README.md index 1a27f5b..f20328c 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,13 @@ Open a browser and navigate to http://localhost:4173/stable/ or http://localhost _Commit the changes and push back to the repo_ ``` +git add -A git commit -a -m "Update latest with new feature ..." git push origin gh-pages +``` + +A note to maintainers: the build process will insert a timestamp into the `index.html` which can be observed for troubleshooting by inspecting the page content. For example, the HTML of the website should begin as follows: +``` + + ``` \ No newline at end of file diff --git a/index.html b/index.html index 2fe80e2..404beb1 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/vite.config.js b/vite.config.js index a3d1833..be1334e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig(async () => ({ plugins: [react()], + base: './', // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build` // @@ -18,4 +19,7 @@ export default defineConfig(async () => ({ ignored: ["**/src-tauri/**"], }, }, + define: { + 'import.meta.env.BUILD_TIME': JSON.stringify(new Date().toISOString()), + } }));