chore: move api dev port to 4100 and web dev port to 7153

This commit is contained in:
Jose Selesan
2026-10-15 15:39:17 -03:00
parent bd519e7082
commit a95d14688a
5 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/superlist?schema=public"
PORT=3000
CORS_ORIGIN="http://localhost:5173"
PORT=4100
CORS_ORIGIN="http://localhost:7153"
BETTER_AUTH_SECRET="change-me-with-openssl-rand-base64-32"
BETTER_AUTH_URL="http://localhost:3000"
BETTER_AUTH_URL="http://localhost:4100"
NODE_ENV="development"

View File

@@ -1 +1 @@
VITE_API_URL="http://localhost:3000"
VITE_API_URL="http://localhost:4100"

View File

@@ -1,6 +1,6 @@
import { PROBLEM_CONTENT_TYPE, type ProblemDetails } from '@superlist/shared'
const baseUrl = import.meta.env.VITE_API_URL ?? 'http://localhost:3000'
const baseUrl = import.meta.env.VITE_API_URL ?? 'http://localhost:4100'
/** Error thrown when the API answers with a RFC 9457 Problem Details payload. */
export class ApiError extends Error {

View File

@@ -20,6 +20,6 @@ export default defineConfig({
},
},
server: {
port: 5173,
port: 7153,
},
})