Files
radicle-explorer/tests/support/config.ts
T
Rūdolfs Ošiņš c72494f620 Enable localhost connections in radicle-explorer
Allow radicle-explorer to connect to a locally running radicle-httpd via
https://app.radicle.xyz/nodes/localhost. This was previously disabled to
encourage use of Radicle Desktop, but is now useful for testing the new
always-on node in local development environments.

Remove support for /nodes/radicle.local, an undocumented and unused convention.

Fix remote node loading when Cloudflare URL-encodes port separator (: → %3A).
2026-01-12 14:38:50 -06:00

13 lines
537 B
TypeScript

// Test adapter for configuration in Node.js environment (Playwright tests).
//
// The app uses "virtual:config" (defined in vite.config.ts via
// vite-plugin-virtual), which is populated at build time with
// config.util.toObject() from the "config" npm package. Since Vite's virtual
// module system doesn't work in Node.js, this file provides the same
// configuration data by directly importing and converting the "config" package.
import nodeConfig from "config";
const config = nodeConfig.util.toObject();
export default config;