Using osias backend
This commit is contained in:
@@ -7,5 +7,5 @@
|
|||||||
// Port 8080, deliberately not 3000 — that's WXT/Vite's dev server port for
|
// 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
|
// this extension, and colliding with it breaks the dev popup silently (its
|
||||||
// script tags point at Vite, but the backend answers instead).
|
// script tags point at Vite, but the backend answers instead).
|
||||||
export const BACKEND_HTTP_URL = 'http://localhost:8080';
|
export const BACKEND_HTTP_URL = 'https://api.osias.trade';
|
||||||
export const BACKEND_WS_URL = 'ws://localhost:8080/ws';
|
export const BACKEND_WS_URL = 'https://api.osias.trade/ws';
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import { BACKEND_HTTP_URL } from '@/shared/config';
|
||||||
import { defineConfig } from 'wxt';
|
import { defineConfig } from 'wxt';
|
||||||
|
|
||||||
// See https://wxt.dev/api/config.html
|
// 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
|
// axiom.trade: the site adapter target. localhost:8080: the Nexa backend
|
||||||
// (dev only — swap/extend for the real backend host before shipping).
|
// (dev only — swap/extend for the real backend host before shipping).
|
||||||
// Not 3000 — that's this extension's own Vite dev server port.
|
// 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: {
|
browser_specific_settings: {
|
||||||
gecko: {
|
gecko: {
|
||||||
// Placeholder id for local/dev builds; replace before publishing to AMO.
|
// Placeholder id for local/dev builds; replace before publishing to AMO.
|
||||||
|
|||||||
Reference in New Issue
Block a user