From 3cc150508dc55a2154893db418f55a9cdfa78534 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Tue, 8 Sep 2026 11:57:59 +0200 Subject: [PATCH] Using osias backend --- src/shared/config.ts | 4 ++-- wxt.config.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/shared/config.ts b/src/shared/config.ts index 426f95b..0b0db0a 100644 --- a/src/shared/config.ts +++ b/src/shared/config.ts @@ -7,5 +7,5 @@ // Port 8080, deliberately not 3000 — that's WXT/Vite's dev server port for // this extension, and colliding with it breaks the dev popup silently (its // script tags point at Vite, but the backend answers instead). -export const BACKEND_HTTP_URL = 'http://localhost:8080'; -export const BACKEND_WS_URL = 'ws://localhost:8080/ws'; +export const BACKEND_HTTP_URL = 'https://api.osias.trade'; +export const BACKEND_WS_URL = 'https://api.osias.trade/ws'; diff --git a/wxt.config.ts b/wxt.config.ts index 4c3e1a2..5af1d14 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -1,3 +1,4 @@ +import { BACKEND_HTTP_URL } from '@/shared/config'; import { defineConfig } from 'wxt'; // See https://wxt.dev/api/config.html @@ -13,7 +14,7 @@ export default defineConfig({ // axiom.trade: the site adapter target. localhost:8080: the Nexa backend // (dev only — swap/extend for the real backend host before shipping). // Not 3000 — that's this extension's own Vite dev server port. - host_permissions: ['https://axiom.trade/*', 'http://localhost:8080/*'], + host_permissions: ['https://axiom.trade/*', BACKEND_HTTP_URL + "/*"], browser_specific_settings: { gecko: { // Placeholder id for local/dev builds; replace before publishing to AMO.