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:
2026-02-27 14:07:13 -08:00
parent d4f9a1d5d7
commit 7c9ab22447
3 changed files with 4 additions and 16 deletions
-4
View File
@@ -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: [
{
+2 -10
View File
@@ -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
+2 -2
View File
@@ -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 {