Some checks failed
phoenix-deploy Deploy failed: Command failed: bash scripts/deployment/phoenix-deploy-explorer-live-from-workspace.sh
nginx: the configuration file /et
Deploy Explorer Live / deploy (push) Failing after 4m8s
40 lines
1013 B
JavaScript
40 lines
1013 B
JavaScript
const path = require('path')
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
output: 'standalone',
|
|
outputFileTracingRoot: path.resolve(__dirname, '..', '..'),
|
|
async redirects() {
|
|
return [
|
|
{
|
|
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,
|
|
},
|
|
]
|
|
},
|
|
// 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
|