mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-28 07:50:47 +08:00
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).
13 lines
537 B
TypeScript
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;
|