From a8a3d58ed15b4aaedfcf0d6497a03fe5e3a0c4e3 Mon Sep 17 00:00:00 2001 From: Debian Dev4 Date: Thu, 18 Sep 2025 15:22:30 +0000 Subject: [PATCH] docker_tag=ext --- .dockerignore | 1 + .env.example | 8 ++++---- src/pages/authorized-client.tsx | 14 +++++++++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 41d0a02c..8a988474 100644 --- a/.dockerignore +++ b/.dockerignore @@ -8,3 +8,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* .env* + diff --git a/.env.example b/.env.example index c7f38c41..54b852e8 100644 --- a/.env.example +++ b/.env.example @@ -44,8 +44,8 @@ SIGNER_BASE_URL=https://dev3.4nkweb.com/signer/ # WS # RELAY_URLS=wss://demo.4nkweb.com/ws RELAY_URLS=wss://dev4.4nkweb.com/ws -# SIGNER_WS_URL=https://dev4.4nkweb.com/signer/ -SIGNER_WS_URL=https://dev3.4nkweb.com/signer/ +# SIGNER_WS_URL=ws://dev4.4nkweb.com/signer/ +SIGNER_WS_URL=ws://dev3.4nkweb.com # IHM URLS # VITE_BOOTSTRAPURL=http://sdk_relay:8090/ @@ -54,8 +54,8 @@ VITE_BOOTSTRAPURL=https://dev4.4nkweb.com/ws/ # Cartes de test Stripe SUCCES='4242 4242 4242 4242' DECLINED='4000 0025 0000 3155' +CORS_ALLOWED_ORIGINS=http://local.4nkweb.com:3000,https://dev4.4nkweb.com -SIGNER_API_KEY=your_signer_api_key_here # ================================= /!\ sensible ======================== @@ -86,4 +86,4 @@ STRIPE_STANDARD_ANNUAL_SUBSCRIPTION_PRICE_ID= STRIPE_UNLIMITED_SUBSCRIPTION_PRICE_ID= STRIPE_UNLIMITED_ANNUAL_SUBSCRIPTION_PRICE_ID= -SIGNER_API_KEY=your_signer_api_key_here \ No newline at end of file +SIGNER_API_KEY=your-api-key-change-this \ No newline at end of file diff --git a/src/pages/authorized-client.tsx b/src/pages/authorized-client.tsx index 5c9cf7a9..14bbe1f4 100644 --- a/src/pages/authorized-client.tsx +++ b/src/pages/authorized-client.tsx @@ -1,5 +1,17 @@ import LoginCallBack from "@Front/Components/Layouts/LoginCallback"; +import { useEffect } from "react"; export default function Route() { - return ; + useEffect(() => { + if (typeof window !== "undefined") { + const origin = window.location.origin; + if (origin.startsWith("http://local.4nkweb.com:3000")) { + const search = window.location.search || ""; + const target = `https://dev4.4nkweb.com/lecoffre/authorized-client${search}`; + window.location.replace(target); + } + } + }, []); + + return ; }