mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
more issue -> sprint
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,7 @@ const main = async () => {
|
|||||||
const server = Bun.serve({
|
const server = Bun.serve({
|
||||||
port: Number(PORT),
|
port: Number(PORT),
|
||||||
routes: {
|
routes: {
|
||||||
"/": withCors(() => new Response(`title: eussi\ndev-mode: ${DEV}\nport: ${PORT}`)),
|
"/": withCors(() => new Response(`title: tnirps\ndev-mode: ${DEV}\nport: ${PORT}`)),
|
||||||
"/health": withCors(() => new Response("OK")),
|
"/health": withCors(() => new Response("OK")),
|
||||||
|
|
||||||
// routes that modify state require withCSRF middleware
|
// routes that modify state require withCSRF middleware
|
||||||
@@ -80,7 +80,7 @@ const main = async () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`eussi (issue server) listening on ${server.url}`);
|
console.log(`tnirps (sprint server) listening on ${server.url}`);
|
||||||
await testDB();
|
await testDB();
|
||||||
startSessionCleanup();
|
startSessionCleanup();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { Input } from "@/components/ui/input";
|
|||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
import { getServerURL } from "@/lib/utils";
|
import { getServerURL } from "@/lib/utils";
|
||||||
|
|
||||||
const DEFAULT_URL = "https://eussi.ob248.com";
|
const DEFAULT_URL = "https://tnirps.ob248.com";
|
||||||
|
|
||||||
const formatURL = (url: string) => {
|
const formatURL = (url: string) => {
|
||||||
if (url.endsWith("/")) {
|
if (url.endsWith("/")) {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export function getServerURL() {
|
|||||||
let serverURL =
|
let serverURL =
|
||||||
localStorage.getItem("serverURL") || // user-defined server URL
|
localStorage.getItem("serverURL") || // user-defined server URL
|
||||||
ENV_SERVER_URL || // environment variable
|
ENV_SERVER_URL || // environment variable
|
||||||
"https://eussi.ob248.com"; // fallback
|
"https://tnirps.ob248.com"; // fallback
|
||||||
if (serverURL.endsWith("/")) {
|
if (serverURL.endsWith("/")) {
|
||||||
serverURL = serverURL.slice(0, -1);
|
serverURL = serverURL.slice(0, -1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user