Skip to content

Commit 545daf7

Browse files
test branch import
1 parent c775a41 commit 545daf7

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export default defineConfig({
1616
applyBaseStyles: false
1717
}), react(), sitemap(), compressor()],
1818
vite: {
19+
define: {
20+
"import.meta.env.BRANCH": JSON.stringify(process.env.BRANCH),
21+
},
1922
ssr: {
2023
noExternal: ["@datapunt/matomo-tracker-react", "@datapunt/matomo-tracker-js"]
2124
}

src/components/navigation/NavigationReact.jsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ function NavigationReact(props) {
99
const { currentURL } = props;
1010
const [isHamburgerMenuOpen, setIsHamburgerMenuOpen] = useState(false);
1111

12+
const branch = import.meta.env.BRANCH;
13+
console.log(branch);
14+
1215
function getUrlPath(url) {
1316
const parts = url.split("/");
1417
return "/" + parts[parts.length - 1];
@@ -85,8 +88,13 @@ function NavigationReact(props) {
8588
</div>
8689

8790
<div className="hidden lg:flex flex-1 justify-end items-center gap-3">
88-
<p className="text-base hover:text-blue-700"><a href="/cloud-saving">Audacity Cloud saving</a></p>
89-
<a href="https://audio.com/audacity/auth/sign-in?mtm_campaign=audacityteamorg&mtm_content=Nav_button" target="_blank">
91+
<p className="text-base hover:text-blue-700">
92+
<a href="/cloud-saving">Audacity Cloud saving</a>
93+
</p>
94+
<a
95+
href="https://audio.com/audacity/auth/sign-in?mtm_campaign=audacityteamorg&mtm_content=Nav_button"
96+
target="_blank"
97+
>
9098
<button
9199
onClick={() => {
92100
handleButtonClick();

0 commit comments

Comments
 (0)