Added instructions and better setup for contributions
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user