Add Chain 138 wallet network metadata and stats coin-price enrichment; sync frontend explorer SPA, command center, and address/token pages with backend config. Co-authored-by: Cursor <cursoragent@cursor.com>
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
const path = require('path')
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
output: 'standalone',
|
|
outputFileTracingRoot: path.resolve(__dirname, '..', '..'),
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/address/:address',
|
|
destination: '/addresses/:address',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/tx/:hash',
|
|
destination: '/transactions/:hash',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/more',
|
|
destination: '/operations',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/docs.html',
|
|
destination: '/docs',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/docs/transaction-compliance',
|
|
destination: '/docs/transaction-review',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/topology',
|
|
destination: '/chain138-command-center.html',
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: '/command-center',
|
|
destination: '/chain138-command-center.html',
|
|
permanent: false,
|
|
},
|
|
]
|
|
},
|
|
// If you see a workspace lockfile warning: align on one package manager (npm or pnpm) in frontend, or ignore for dev/build.
|
|
env: {
|
|
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL ?? '',
|
|
NEXT_PUBLIC_CHAIN_ID: process.env.NEXT_PUBLIC_CHAIN_ID ?? '138',
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|