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

@@ -2,16 +2,16 @@
# Postgres connection string used by Prisma # Postgres connection string used by Prisma
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/superlist?schema=public" DATABASE_URL="postgresql://postgres:postgres@localhost:5432/superlist?schema=public"
# Port the Hono server listens on # Port the Hono server listens on
PORT=3000 PORT=4100
# Comma separated list of origins allowed by CORS (the web dev server) # Comma separated list of origins allowed by CORS (the web dev server)
CORS_ORIGIN="http://localhost:5173" CORS_ORIGIN="http://localhost:7153"
# Secret used by BetterAuth to sign sessions # Secret used by BetterAuth to sign sessions
BETTER_AUTH_SECRET="change-me-with-openssl-rand-base64-32" BETTER_AUTH_SECRET="change-me-with-openssl-rand-base64-32"
# Public URL of the API, used by BetterAuth # Public URL of the API, used by BetterAuth
BETTER_AUTH_URL="http://localhost:3000" BETTER_AUTH_URL="http://localhost:4100"
# "development" enables pretty logs, "production" emits JSON # "development" enables pretty logs, "production" emits JSON
NODE_ENV="development" NODE_ENV="development"
# --- apps/web --- # --- apps/web ---
# Public URL of the API consumed by the frontend # Public URL of the API consumed by the frontend
VITE_API_URL="http://localhost:3000" VITE_API_URL="http://localhost:4100"

View File

@@ -1,6 +1,6 @@
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/superlist?schema=public" DATABASE_URL="postgresql://postgres:postgres@localhost:5432/superlist?schema=public"
PORT=3000 PORT=4100
CORS_ORIGIN="http://localhost:5173" CORS_ORIGIN="http://localhost:7153"
BETTER_AUTH_SECRET="change-me-with-openssl-rand-base64-32" 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" 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' 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. */ /** Error thrown when the API answers with a RFC 9457 Problem Details payload. */
export class ApiError extends Error { export class ApiError extends Error {

View File

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