chore: move api dev port to 4100 and web dev port to 7153
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -1 +1 @@
|
||||
VITE_API_URL="http://localhost:3000"
|
||||
VITE_API_URL="http://localhost:4100"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -20,6 +20,6 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
port: 7153,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user