2022-03-24 16:40:57 +00:00
|
|
|
const API_DOCS_URL = 'https://docs.manifold.markets/api'
|
2022-02-21 18:50:05 +00:00
|
|
|
|
2021-12-01 04:20:13 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
module.exports = {
|
|
|
|
reactStrictMode: true,
|
2022-01-14 23:05:12 +00:00
|
|
|
experimental: {
|
|
|
|
externalDir: true,
|
|
|
|
optimizeCss: true,
|
2022-05-22 08:36:05 +00:00
|
|
|
modularizeImports: {
|
|
|
|
lodash: {
|
|
|
|
transform: 'lodash/{{member}}',
|
|
|
|
},
|
|
|
|
},
|
2022-01-14 23:05:12 +00:00
|
|
|
},
|
2021-12-10 23:43:22 +00:00
|
|
|
images: {
|
2022-05-03 14:00:33 +00:00
|
|
|
domains: ['lh3.googleusercontent.com', 'i.imgur.com'],
|
2021-12-10 23:43:22 +00:00
|
|
|
},
|
2022-02-21 18:50:05 +00:00
|
|
|
async redirects() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/api',
|
|
|
|
destination: API_DOCS_URL,
|
|
|
|
permanent: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/api/v0',
|
|
|
|
destination: API_DOCS_URL,
|
|
|
|
permanent: false,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2021-12-02 23:49:46 +00:00
|
|
|
}
|