Skip to content

Commit d8e9701

Browse files
committed
fix status indicator
1 parent 4b29ecc commit d8e9701

File tree

7 files changed

+1856
-1830
lines changed

7 files changed

+1856
-1830
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The source code for the old CHS MC website can be found here on [github](https:/
99
```shell script
1010
cd frontend
1111
npm install
12-
npm run prod
12+
npm run build
1313
cd ..
1414

1515
cd backend

backend/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import crypto from "node:crypto";
44
import nodemailer from "nodemailer";
55
import mariadb from "mariadb";
66
import "dotenv/config";
7+
import cors from "cors";
78

89
const port = process.env.PORT || 3000;
910
const dbName = process.env.DB_NAME || "mc_stats";
@@ -80,6 +81,7 @@ const recheck = async () => {
8081
recheck();
8182

8283
const app = express();
84+
app.use(cors());
8385
app.use(express.static("../frontend/dist")); // use public
8486
app.use(express.json()); // to support JSON-encoded bodies
8587
app.use(express.urlencoded({ extended: true })); // to support URL-encoded bodies

0 commit comments

Comments
 (0)