update endpoints

This commit is contained in:
2024-05-16 00:55:26 +02:00
parent 303f63afd6
commit 2b9387cd7c
2 changed files with 11 additions and 8 deletions

View File

@@ -1,6 +1,12 @@
const isDebug = import.meta.env.VITE_IS_DEBUG === "true";
export const pixelSize = 10;
export const pixelCooldown = 10 * 1000; // 10 seconds
export const canvasEndpoint = "http://localhost:3000/canvas/";
export const checkEndpoint = "http://localhost:3000/check/";
export const canvasEndpoint = isDebug
? "http://localhost:3000/canvas/"
: "/canvas/";
export const checkEndpoint = isDebug
? "http://localhost:3000/check/"
: "/check/";
export const WIDTH = 500;
export const HEIGHT = 500;