Skip to content

Commit

Permalink
feat: fix vite config definition
Browse files Browse the repository at this point in the history
  • Loading branch information
CarinaDraganJW committed Jul 5, 2023
1 parent 13a1e21 commit 2d772ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default ({ mode, command }: ConfigEnv): UserConfigExport => {
}),
],
define: {
APP_VERSION: JSON.stringify(process.env.npm_package_version),
'import.meta.env.APP_VERSION': JSON.stringify(process.env.npm_package_version),
},
publicDir: './public',
envPrefix: 'APP_',
Expand Down

0 comments on commit 2d772ed

Please sign in to comment.