port replaced

This commit is contained in:
2025-06-01 14:04:31 +05:30
parent aa38ddc00c
commit c91d5efb05
4 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
HOST="localhost"
PORT=3000
FRONTEND_URL="http://localhost:5173"
FRONTEND_URL="http://localhost:3000"
JWT_SECRET = 'dentalsecret'
DATABASE_URL=postgresql://postgres:mypassword@localhost:5432/dentalapp

View File

@@ -1,2 +1,2 @@
VITE_API_BASE_URL=http://localhost:3000
VITE_API_BASE_URL_BACKEND=http://localhost:5000

View File

@@ -1,6 +1,6 @@
import { QueryClient, QueryFunction } from "@tanstack/react-query";
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL ?? "";
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL_BACKEND ?? "";
async function throwIfResNotOk(res: Response) {
if (!res.ok) {

View File

@@ -8,6 +8,9 @@ export default defineConfig({
plugins: [
react(),
],
server: {
port: 3000,
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')