Backend and frontend is served from same binary

This commit is contained in:
Niko Reunanen 2025-08-01 19:46:11 +03:00
parent e4ff93d562
commit 72311a9a62
Signed by: nreunane
GPG key ID: D192625387DB0F16

View file

@ -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, {