Abo-Seiten: Skripte liefen nie

data-astro-rerun macht ein Skript zu is:inline. Astro bündelt es dann
nicht, und das import darin scheitert im Browser. Betroffen waren die
Rückkehrseite nach der Zahlung (blieb ewig bei „Wir richten Ihr Abo
ein"), die Abo-Verwaltung im Konto und die Kündigungsseite. Alle drei
hängen ohnehin an astro:page-load, das Attribut war überflüssig.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
torbinus
2026-10-26 10:07:48 +01:00
parent aef3a7822a
commit 9bec8ab336
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ const cartId = Astro.url.searchParams.get("cart") ?? "";
</section> </section>
</Layout> </Layout>
<script data-astro-rerun> <script>
import { getCart } from "../../lib/cart"; import { getCart } from "../../lib/cart";
import { clearCartIdClient } from "../../lib/cartCookie"; import { clearCartIdClient } from "../../lib/cartCookie";
+1 -1
View File
@@ -206,7 +206,7 @@ const formatDate = (value: string | null) => (value ? dateFmt.format(new Date(va
</template> </template>
</Layout> </Layout>
<script data-astro-rerun> <script>
import { updateSubscription } from "../../lib/subscriptions"; import { updateSubscription } from "../../lib/subscriptions";
import { getCustomerTokenClient } from "../../lib/customerCookie"; import { getCustomerTokenClient } from "../../lib/customerCookie";
+1 -1
View File
@@ -134,7 +134,7 @@ import Layout from "../layouts/Layout.astro";
</section> </section>
</Layout> </Layout>
<script data-astro-rerun> <script>
import { cancelWithoutLogin } from "../lib/subscriptions"; import { cancelWithoutLogin } from "../lib/subscriptions";
document.addEventListener("astro:page-load", () => { document.addEventListener("astro:page-load", () => {