Skip to content

Commit 96c207b

Browse files
committed
fix: hardcode billing-portal/sessions worker path
1 parent 437162a commit 96c207b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/builder/app/routes/payments.$.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const zWorkerEnv = z.object({
2525
PAYMENT_WORKER_TOKEN: z.string(),
2626
});
2727

28-
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
28+
export const loader = async ({ request }: LoaderFunctionArgs) => {
2929
if (isDashboard(request) === false) {
3030
throw new Response("Not Found", {
3131
status: 404,
@@ -56,7 +56,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
5656
const workerEnv = workerEnvParsed.data;
5757

5858
const workerUrl = new URL(workerEnv.PAYMENT_WORKER_URL);
59-
workerUrl.pathname = `${workerUrl.pathname}/${params["*"]}`
59+
workerUrl.pathname = `${workerUrl.pathname}/billing-portal/sessions`
6060
.split("/")
6161
.filter(Boolean)
6262
.join("/");

0 commit comments

Comments
 (0)