I am developing a Svelte app prototype that gets deployed to GitHub on push using a GitHub action. As deployment can take a while, I would like to add the date and time of the last commit and the compilation of the app by Svelte to my HTML page, so I see whether my bugfix or new feature is available already for testing outside of my local development machine. How can I achieve that?
1
-
Could you put it in rollup or svelte.config.cjs (if using sveltekit)? Get the time from Date() , export it as a variable on build, and consume it with svelte on the front. I believe, although crude, this could be done in either of those config files. – Dapper 4 hours ago
Add a comment
|