Skip to content

Commit

Permalink
fix status indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed Nov 18, 2024
1 parent 4b29ecc commit d8e9701
Show file tree
Hide file tree
Showing 7 changed files with 1,856 additions and 1,830 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The source code for the old CHS MC website can be found here on [github](https:/
```shell script
cd frontend
npm install
npm run prod
npm run build
cd ..

cd backend
Expand Down
2 changes: 2 additions & 0 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import crypto from "node:crypto";
import nodemailer from "nodemailer";
import mariadb from "mariadb";
import "dotenv/config";
import cors from "cors";

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

const app = express();
app.use(cors());
app.use(express.static("../frontend/dist")); // use public
app.use(express.json()); // to support JSON-encoded bodies
app.use(express.urlencoded({ extended: true })); // to support URL-encoded bodies
Expand Down
Loading

0 comments on commit d8e9701

Please sign in to comment.