From 1ce41dda83a08f9836c8849f680aa74b4cf06e67 Mon Sep 17 00:00:00 2001 From: npalOmega Date: Mon, 30 Mar 2026 13:39:32 -0500 Subject: [PATCH] prod url flipped --- .env.example | 4 ++-- src/constants.js | 4 ++-- src/setupProxy.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 183677fd..d6aba20e 100644 --- a/.env.example +++ b/.env.example @@ -3,10 +3,10 @@ # Backend API Base URL (without /api suffix) # For local development, this should point to your ASP.NET Core API -REACT_APP_API_URL=http://localhost:5000 +#REACT_APP_API_URL=http://localhost:5000 # For production, update to your production API URL -# REACT_APP_API_URL=https://api.seahavenindustries.com + REACT_APP_API_URL=https://api.seahavenindustries.com # Note: The /api prefix is added in the service files # Example: ${REACT_APP_API_URL}/api/Authentication/login diff --git a/src/constants.js b/src/constants.js index 693a88d6..3b42cbd8 100644 --- a/src/constants.js +++ b/src/constants.js @@ -8,8 +8,8 @@ export const API_SUCCESS_MESSAGE = export const API_DELETE_SUCCESS_MESSAGE = "Item is deleted"; -//export const API_URL = "http://console.seahavenind.com/api"; -export const API_URL = "https://localhost:7195/api"; +export const API_URL = "http://console.seahavenind.com/api"; +//export const API_URL = "https://localhost:7195/api"; export const form_text_builder = (mode) => { diff --git a/src/setupProxy.js b/src/setupProxy.js index 12d35950..d9392526 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -4,8 +4,8 @@ module.exports = function(app) { app.use( '/api', createProxyMiddleware({ - //target: 'http://console.seahavenind.com', - target: 'https://localhost:7195', + target: 'http://console.seahavenind.com', + //target: 'https://localhost:7195', changeOrigin: true, }) );