Skip to content

Commit

Permalink
fix: next_public for version env
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Feb 12, 2024
1 parent 762b88c commit 63b0820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = withPayload(
domains: ["localhost"],
},
env: {
CURRENT_PACKAGE_VERSION: version,
NEXT_PUBLIC_CURRENT_PACKAGE_VERSION: version,
},
}),
{
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/pages/dashboard/account/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ export default function Account() {
))}
</Flex>
<Text fontSize="xs" fontWeight="medium" textAlign="center" mt={12}>
Version appli beta test V{process.env.CURRENT_PACKAGE_VERSION}
Version appli beta test V
{process.env.NEXT_PUBLIC_CURRENT_PACKAGE_VERSION}
</Text>
</Box>
);
Expand Down

0 comments on commit 63b0820

Please sign in to comment.