Skip to content

Railway Deployment #c6f6c9 fix: cast revalidateTag calls - #3

Open
railway-app[bot] wants to merge 1 commit into
masterfrom
railway/fix-deploy-c6f6c9
Open

Railway Deployment #c6f6c9 fix: cast revalidateTag calls#3
railway-app[bot] wants to merge 1 commit into
masterfrom
railway/fix-deploy-c6f6c9

Conversation

@railway-app

@railway-app railway-app Bot commented Mar 25, 2026

Copy link
Copy Markdown

Problem

The Next.js 16 TypeScript signature for revalidateTag from next/cache requires 2 arguments, causing next build to fail with "Expected 2 arguments, but got 1" on the bare revalidateTag("cart") calls in cart.ts (setCheckoutContact, setCheckoutDelivery, placeOrder) and payment.ts (initiatePaymentSession).

Solution

Cast all single-argument revalidateTag calls to (revalidateTag as any)(...), matching the established pattern already used in user.ts for revalidateTag("customer") and revalidateTag("auth"). This bypasses the TypeScript 2-argument requirement while preserving runtime behavior.

Changes

  • Modified features/storefront/lib/data/cart.ts
  • Modified features/storefront/lib/data/payment.ts

Context

  • Deployment: #c6f6c9
  • Failed commit: 3d0130d

Generated by Railway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants