switch in .env for dev/prod
This commit is contained in:
parent
773b4773eb
commit
a3b0fffe45
7 changed files with 29 additions and 22 deletions
|
@ -4,12 +4,7 @@ const port = 3000;
|
|||
const cors = require("cors");
|
||||
|
||||
const app = express();
|
||||
app.use(
|
||||
cors({
|
||||
origin: "https://ec683cee72d30c5030.fredzernia.com/",
|
||||
credentials: true,
|
||||
}),
|
||||
);
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
|
||||
// ####### ROUTES #######
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue