We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a350ce commit 603da42Copy full SHA for 603da42
playground/src/app.jsx
@@ -54,7 +54,7 @@ function App() {
54
<CodeHikeLogo />
55
<h1>
56
Code Hike
57
- <span>v0.6.0</span>
+ <span>v{__APP_VERSION__}</span>
58
</h1>
59
</a>
60
<a href="https://codehike.org/docs">Docs</a>
playground/vite.config.js
@@ -4,4 +4,7 @@ import react from "@vitejs/plugin-react";
4
// https://vitejs.dev/config/
5
export default defineConfig({
6
plugins: [react()],
7
+ define: {
8
+ __APP_VERSION__: JSON.stringify(process.env.npm_package_version),
9
+ },
10
});
0 commit comments