Using osias backend

This commit is contained in:
2026-09-08 11:57:59 +02:00
parent 7f8270a048
commit 3cc150508d
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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';
+2 -1
View File
@@ -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.