28 lines
528 B
JavaScript
28 lines
528 B
JavaScript
const API_DOCS_URL = 'https://docs.manifold.markets/api'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
module.exports = {
|
|
reactStrictMode: true,
|
|
experimental: {
|
|
externalDir: true,
|
|
optimizeCss: true,
|
|
},
|
|
images: {
|
|
domains: ['lh3.googleusercontent.com'],
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/api',
|
|
destination: API_DOCS_URL,
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: '/api/v0',
|
|
destination: API_DOCS_URL,
|
|
permanent: false,
|
|
},
|
|
]
|
|
},
|
|
}
|