Skip to content

Commit

Permalink
fix: remove VITE_APP_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 6, 2024
1 parent 00a9bc1 commit 8261bd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/ReloadPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function ReloadPrompt() {
updateServiceWorker,
} = useRegisterSW({
onRegisteredSW(swUrl) {
console.log(`SW Registered: ${swUrl} (Version: ${import.meta.env.VITE_APP_VERSION})`);
console.log(`SW Registered: ${swUrl} (Version: ${import.meta.env.VITE_GIT_HASH})`);
},
onRegisterError(error) {
console.log('SW registration error', error);
Expand All @@ -35,7 +35,7 @@ function ReloadPrompt() {


toast.message(
`${t('pwa.newContent')} (${import.meta.env.VITE_APP_VERSION})`,
`${t('pwa.newContent')} (${import.meta.env.VITE_GIT_HASH})`,
{
action: {
label: t('pwa.reload'),
Expand Down
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default defineConfig({
base: "/",
define: {
"import.meta.env.VITE_GIT_HASH": JSON.stringify(getGitHash()),
"import.meta.env.VITE_APP_VERSION": JSON.stringify(process.env.npm_package_version || "1.0.0"),
},
plugins: [
react(),
Expand Down

0 comments on commit 8261bd8

Please sign in to comment.