port replaced
This commit is contained in:
@@ -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
|
||||
@@ -1,2 +1,2 @@
|
||||
VITE_API_BASE_URL=http://localhost:3000
|
||||
VITE_API_BASE_URL_BACKEND=http://localhost:5000
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -8,6 +8,9 @@ export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
],
|
||||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src')
|
||||
|
||||
Reference in New Issue
Block a user