[Feature] Helm Integration (#2)
Co-authored-by: dunemask <dunemask@gmail.com> Reviewed-on: https://gitea.dunemask.net/elysium/minecluster/pulls/2
This commit is contained in:
parent
5779777d89
commit
53190fddf5
19 changed files with 1266 additions and 748 deletions
8
lib/routes/react-route.js
vendored
Normal file
8
lib/routes/react-route.js
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import express, { Router } from "express";
|
||||
import path from "path";
|
||||
const router = Router();
|
||||
router.use("/", express.static(path.resolve("./build")));
|
||||
router.get("/*", (req, res) =>
|
||||
res.sendFile(path.resolve("./build/index.html"))
|
||||
);
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue