Skip to content

Commit adfd2c9

Browse files
DilsonsPicklesLWinterberg
authored andcommitted
Try another method
1 parent 5b03a0f commit adfd2c9

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

astro.config.mjs

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,25 @@ import compressor from "astro-compressor";
1010
// https://astro.build/config
1111
export default defineConfig({
1212
site: "https://www.audacityteam.org",
13-
integrations: [tailwind({
14-
// Example: Disable injecting a basic `base.css` import on every page.
15-
// Useful if you need to define and/or import your own custom `base.css`.
16-
applyBaseStyles: false
17-
}), react(), sitemap(), compressor()],
13+
integrations: [
14+
tailwind({
15+
// Example: Disable injecting a basic `base.css` import on every page.
16+
// Useful if you need to define and/or import your own custom `base.css`.
17+
applyBaseStyles: false,
18+
}),
19+
react(),
20+
sitemap(),
21+
compressor(),
22+
],
1823
vite: {
1924
define: {
2025
"import.meta.env.BRANCH": JSON.stringify(process.env.BRANCH),
2126
},
2227
ssr: {
23-
noExternal: ["@datapunt/matomo-tracker-react", "@datapunt/matomo-tracker-js"]
24-
}
28+
noExternal: [
29+
"@datapunt/matomo-tracker-react",
30+
"@datapunt/matomo-tracker-js",
31+
],
32+
},
2533
},
2634
});

src/pages/.secret-form.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import NewsletterForm from "../components/form/NewsletterForm.astro";
33
import BaseLayout from "../layouts/BaseLayout.astro";
44
import "../styles/icons.css";
5+
6+
const branch = import.meta.env.BRANCH || "unknown";
57
---
68

79
<BaseLayout
@@ -11,6 +13,8 @@ import "../styles/icons.css";
1113
<section class="mx-8 max-w-screen-md xl:max-w-screen-lg md:mx-auto">
1214
<div class="mt-8 flex flex-col items-center gap-8">
1315
<h1>Sign up to our newsletter</h1>
16+
17+
<p>Current branch: {branch}</p>
1418
<NewsletterForm />
1519
</div>
1620
</section>

0 commit comments

Comments
 (0)