mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
fix: remove i18n config causing 307 loop, make MPC URLs configurable
- Remove i18n from next.config.js (incompatible with App Router, caused infinite 307 redirect loop on /) - Make MPC node URLs configurable via MPC_URL env var (comma-separated) - Default MPC URL changed from port 6000 to 8080 (matching actual MPC API)
This commit is contained in:
@@ -32,10 +32,6 @@ module.exports = (phase, { defaultConfig }) => {
|
||||
basePath: process.env.APP_BASE_PATH || '',
|
||||
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
|
||||
reactStrictMode: false,
|
||||
i18n: {
|
||||
locales: ["en"],
|
||||
defaultLocale: "en",
|
||||
},
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
import axios from "axios"
|
||||
const mpc_nodes = [
|
||||
// "http://127.0.0.1:6000",
|
||||
// "http://127.0.0.1:6000",
|
||||
// "https://teleport-0.lux.network",
|
||||
// "https://teleport-0.lux.network/"
|
||||
// 'https://teleport-2.lux.network/',
|
||||
"http://mpc-node-0:6000",
|
||||
"http://mpc-node-1:6000"
|
||||
// "http://mpc-node-2:6000"
|
||||
]
|
||||
const MPC_URL = process.env.MPC_URL || "http://mpc-node-0:8080";
|
||||
const mpc_nodes = MPC_URL.split(",").map(s => s.trim());
|
||||
/**
|
||||
* get signature from mpc oracle network for mpc signature
|
||||
* @param signData
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import axios from "axios"
|
||||
const mpc_nodes = ["http://mpc-node-0:6000", "http://mpc-node-1:6000", "http://mpc-node-2:6000"]
|
||||
// const mpc_nodes = ["https://teleport-0.lux.network", "https://teleport-1.lux.network", "https://teleport-2.lux.network"]
|
||||
const MPC_URL = process.env.MPC_URL || "http://mpc-node-0:8080";
|
||||
const mpc_nodes = MPC_URL.split(",").map(s => s.trim());
|
||||
|
||||
const main = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user