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

Commit

Permalink
feat: get version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Oct 9, 2024
1 parent 4a60020 commit 4b667a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ <h3 class='news-header'>What's New!</h3>
</div>
</div>
<div id="start-bottom-middle">
<a href='changelogRec.html' target="_blank" class="footer-after">ver 0.0.14</a>
<a href='changelogRec.html' target="_blank" class="footer-after">ver %VITE_GAME_VERSION%</a>
<a href="changelog.html" target="_blank" data-l10n="index-proxy-sites">original changelog</a>
<!--
<a href='changelog.html' target="_blank" class="footer-after">ver 0.8.82</a>
Expand Down Expand Up @@ -1293,7 +1293,7 @@ <h2>&nbsp;</h2>
</div> -->
<div class='modal-divider'></div>
<div id='modal-hamburger-bottom'>
<a href='changelogRec.html' class="footer-after">ver 0.0.14</a>
<a href='changelogRec.html' class="footer-after">ver %VITE_GAME_VERSION%</a>
<!--
<a href='changelog.html' class="footer-after">ver 0.8.82</a>
<a href='#' class="btn-cookie-settings footer-after">cookie settings</a>
Expand Down
6 changes: 6 additions & 0 deletions client/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { defineConfig } from "vite";
import stripBlockPlugin from "vite-plugin-strip-block";
import { version } from "../package.json";
import { Config } from "../server/src/config";
import { GIT_VERSION } from "../server/src/utils/gitRevision";

export default defineConfig(({ mode }) => {
process.env = {
...process.env,
VITE_GAME_VERSION: version,
};

const regions = {
...Config.regions,
...(mode === "development"
Expand Down

0 comments on commit 4b667a8

Please sign in to comment.