From 2df4a96ccdddc2d0b361d0514633e0198a40fc3f Mon Sep 17 00:00:00 2001 From: Pierre Ryssen Date: Fri, 13 Mar 2026 14:41:33 +0100 Subject: [PATCH] fix: change the dns from the file route.ts in tiktok --- app/api/tiktok/callback/route.ts | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/tiktok/callback/route.ts b/app/api/tiktok/callback/route.ts index 5aeda40..e99028e 100644 --- a/app/api/tiktok/callback/route.ts +++ b/app/api/tiktok/callback/route.ts @@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from "next/server"; import { exchangeCodeForTokens } from "@/lib/tiktok"; import { prisma } from "@/lib/prisma"; -const baseUrl = process.env.NEXTAUTH_URL || "https://marouette.fun"; +const baseUrl = process.env.NEXT_PUBLIC_APP_URL ?? ""; export async function GET(request: NextRequest) { const { searchParams } = new URL(request.url); diff --git a/docker-compose.yml b/docker-compose.yml index d16b38e..19901df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,6 +32,7 @@ services: - NODE_ENV=production - DATABASE_URL=postgresql://wyview:wyview@postgres:5432/wyview - AUTH_URL=${AUTH_URL} + - NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL} - NEXTAUTH_URL=${NEXTAUTH_URL} - NEXTAUTH_SECRET=${NEXTAUTH_SECRET} - AUTH_SECRET=${AUTH_SECRET} @@ -61,6 +62,7 @@ services: condition: service_healthy app: condition: service_started + command: sh -c "sleep 30 && node worker/snapshot-worker.js" volumes: postgres_data: