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:
@@ -69,7 +69,7 @@ const cartId = Astro.url.searchParams.get("cart") ?? "";
|
||||
</section>
|
||||
</Layout>
|
||||
|
||||
<script data-astro-rerun>
|
||||
<script>
|
||||
import { getCart } from "../../lib/cart";
|
||||
import { clearCartIdClient } from "../../lib/cartCookie";
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ const formatDate = (value: string | null) => (value ? dateFmt.format(new Date(va
|
||||
</template>
|
||||
</Layout>
|
||||
|
||||
<script data-astro-rerun>
|
||||
<script>
|
||||
import { updateSubscription } from "../../lib/subscriptions";
|
||||
import { getCustomerTokenClient } from "../../lib/customerCookie";
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ import Layout from "../layouts/Layout.astro";
|
||||
</section>
|
||||
</Layout>
|
||||
|
||||
<script data-astro-rerun>
|
||||
<script>
|
||||
import { cancelWithoutLogin } from "../lib/subscriptions";
|
||||
|
||||
document.addEventListener("astro:page-load", () => {
|
||||
|
||||
Reference in New Issue
Block a user