From 72311a9a62d34ac620b3eb56038c6cc271f93402 Mon Sep 17 00:00:00 2001 From: Niko Reunanen Date: Fri, 1 Aug 2025 19:46:11 +0300 Subject: [PATCH] Backend and frontend is served from same binary --- front-end/src/main.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/front-end/src/main.ts b/front-end/src/main.ts index f3e696c..5afae49 100644 --- a/front-end/src/main.ts +++ b/front-end/src/main.ts @@ -5,10 +5,7 @@ import PrimeVue from "primevue/config"; import ToastService from "primevue/toastservice"; import { createApp } from "vue"; -const is_prod = import.meta.env.PROD; -const PB_URL = is_prod ? "https://ht-be.n87.xyz" : "http://127.0.0.1:8090"; - -const pb = new PocketBase(PB_URL); +const pb = new PocketBase("/"); const app = createApp(App); app.use(PrimeVue, {