add suika combination
This commit is contained in:
parent
ad0f40e638
commit
e3133f28d4
5 changed files with 22 additions and 1 deletions
6
index.js
6
index.js
|
|
@ -9,6 +9,7 @@ import { build } from "astro";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import { existsSync } from "fs";
|
import { existsSync } from "fs";
|
||||||
import dotenv from "dotenv";
|
import dotenv from "dotenv";
|
||||||
|
import helmet from "helmet";
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
if (!existsSync("./dist")) build();
|
if (!existsSync("./dist")) build();
|
||||||
|
|
@ -47,6 +48,11 @@ app.use(
|
||||||
extended: true,
|
extended: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
app.use(function(req, res, next) {
|
||||||
|
res.header("Cross-Origin-Embedder-Policy", "require-corp");
|
||||||
|
res.header("Cross-Origin-Opener-Policy", "same-origin");
|
||||||
|
next();
|
||||||
|
});
|
||||||
app.use("/", express.static("dist/client/"));
|
app.use("/", express.static("dist/client/"));
|
||||||
app.get("/search", async (req, res) => {
|
app.get("/search", async (req, res) => {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
9
package-lock.json
generated
9
package-lock.json
generated
|
|
@ -16,6 +16,7 @@
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
|
"helmet": "^7.1.0",
|
||||||
"npm": "^10.2.5",
|
"npm": "^10.2.5",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
|
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
|
||||||
|
|
@ -3465,6 +3466,14 @@
|
||||||
"resolved": "https://registry.npmjs.org/headers-polyfill/-/headers-polyfill-3.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/headers-polyfill/-/headers-polyfill-3.3.0.tgz",
|
||||||
"integrity": "sha512-5e57etwBpNcDc0b6KCVWEh/Ro063OxPvzVimUdM0/tsYM/T7Hfy3kknIGj78SFTOhNd8AZY41U8mOHoO4LzmIQ=="
|
"integrity": "sha512-5e57etwBpNcDc0b6KCVWEh/Ro063OxPvzVimUdM0/tsYM/T7Hfy3kknIGj78SFTOhNd8AZY41U8mOHoO4LzmIQ=="
|
||||||
},
|
},
|
||||||
|
"node_modules/helmet": {
|
||||||
|
"version": "7.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/helmet/-/helmet-7.1.0.tgz",
|
||||||
|
"integrity": "sha512-g+HZqgfbpXdCkme/Cd/mZkV0aV3BZZZSugecH03kl38m/Kmdx8jKjBikpDj2cr+Iynv4KpYEviojNdTJActJAg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/html-escaper": {
|
"node_modules/html-escaper": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz",
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
|
"helmet": "^7.1.0",
|
||||||
"npm": "^10.2.5",
|
"npm": "^10.2.5",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
|
"rammerhead": "https://github.com/NebulaServices/rammerhead/releases/download/rammerhead-1.2.41-nebula.8/rammerhead-1.2.41-nebula.7.tgz",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 11287d0a834c672a55d10164dbfefe9ee1922d3d
|
Subproject commit 2e6cd673ab519025af951713868860b7895b11b8
|
||||||
|
|
@ -214,6 +214,11 @@
|
||||||
"image": "/games/sort-the-court/logo.jpg",
|
"image": "/games/sort-the-court/logo.jpg",
|
||||||
"slug": "sort-the-court"
|
"slug": "sort-the-court"
|
||||||
},
|
},
|
||||||
|
"suika-combination": {
|
||||||
|
"name": "Suika Combination",
|
||||||
|
"image": "/games/suika-combination/logo.png",
|
||||||
|
"slug": "suika-combination"
|
||||||
|
},
|
||||||
"superhot": {
|
"superhot": {
|
||||||
"name": "Superhot",
|
"name": "Superhot",
|
||||||
"image": "/games/superhot/logo.png",
|
"image": "/games/superhot/logo.png",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue