Files
copilot/wxt.config.ts
T
selimaj-devandclaude e3d1e45843 Fix @ alias not resolving inside wxt.config.ts
The @/ path alias is only wired up for the app bundle via WXT's
generated tsconfig; wxt.config.ts itself runs outside that resolution,
so the aliased import of BACKEND_HTTP_URL failed there. Use a relative
import instead.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tn7uDYjTuZEbLPwpEiSCUw
2026-09-08 12:07:21 +02:00

24 lines
829 B
TypeScript

import { BACKEND_HTTP_URL } from './src/shared/config';
import { defineConfig } from 'wxt';
// See https://wxt.dev/api/config.html
export default defineConfig({
srcDir: 'src',
modules: ['@wxt-dev/module-react'],
// Target Manifest V3 on both Chromium and Firefox (modern Firefox / Zen support it).
manifestVersion: 3,
manifest: {
name: 'Nexa',
description: 'Your blockchain powered agent to help with your trading emotions.',
permissions: ['storage'],
// axiom.trade: the site adapter target. The other entry is the Nexa backend.
host_permissions: ['https://axiom.trade/*', BACKEND_HTTP_URL + "/*"],
browser_specific_settings: {
gecko: {
// Placeholder id for local/dev builds; replace before publishing to AMO.
id: '[email protected]',
},
},
},
});