Update Lanyard socket URL, enhance IP logging in postAnalytics, and refactor App component structure
Some checks failed
Code quality checks / biome (push) Failing after 7s
Some checks failed
Code quality checks / biome (push) Failing after 7s
This commit is contained in:
parent
281e34bbd9
commit
a8d8f7014a
7 changed files with 49 additions and 183 deletions
|
@ -9,7 +9,7 @@ let lanyard: LanyardData = {
|
|||
activities: [],
|
||||
};
|
||||
|
||||
await fs.rm("./dist", { recursive: true, force: true }).catch(() => {});
|
||||
await fs.rm("./dist", { recursive: true, force: true }).catch(() => { });
|
||||
|
||||
if (!Backend.development) {
|
||||
await Backend.build();
|
||||
|
@ -30,8 +30,9 @@ const server = serve({
|
|||
"/assets/:file": async (req) =>
|
||||
Backend.Responses.file(file(`./dist/${req.params.file}`)),
|
||||
|
||||
"/public/:file": async (req) =>
|
||||
Backend.Responses.file(file(`./public/${req.params.file}`)),
|
||||
"/robots.txt": async () => Backend.Responses.file(file("./public/robots.txt")),
|
||||
"/favicon.svg": async () =>
|
||||
Backend.Responses.file(file("./public/favicon.svg")),
|
||||
|
||||
"/api/server": () => {
|
||||
const safeProcess = JSON.parse(JSON.stringify(process));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue