Added instructions and better setup for contributions

This commit is contained in:
Dries Augustyns
2024-07-31 18:21:39 +02:00
parent 9e21f2fec4
commit bf56034931
6 changed files with 46 additions and 8 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import { type NextFunction, type Request, type Response, json } from "express";
import helmet from "helmet";
import morgan from "morgan";
import signale from "signale";
import { API_URI, NODE_ENV } from "./app/constants";
import { APP_URI, NODE_ENV } from "./app/constants";
import { task } from "./app/cron";
import { Auth } from "./controllers/Auth";
import { Identities } from "./controllers/Identities";
@@ -53,7 +53,7 @@ const server = new (class extends Server {
this.app.use(
cors({
origin: [API_URI],
origin: [APP_URI],
credentials: true,
}),
);
+1 -1
View File
@@ -29,7 +29,7 @@ export const NODE_ENV = validateEnv<"development" | "production">(
export const REDIS_URL = validateEnv("REDIS_URL");
// URLs
export const API_URI = validateEnv("API_URI", "http://localhost:8080");
export const API_URI = validateEnv("API_URI", "http://localhost:4000");
export const APP_URI = validateEnv("APP_URI", "http://localhost:3000");
// AWS