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
|
|
|
|
2022-09-17 19:46:59 +00:00
|
|
|
const ABOUT_PAGE_URL = 'https://help.manifold.markets/'
|
2022-08-17 16:21:20 +00:00
|
|
|
|
2021-12-01 04:20:13 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
module.exports = {
|
2022-09-03 02:43:22 +00:00
|
|
|
productionBrowserSourceMaps: true,
|
2022-06-24 04:51:46 +00:00
|
|
|
staticPageGenerationTimeout: 600, // e.g. stats page
|
2021-12-01 04:20:13 +00:00
|
|
|
reactStrictMode: true,
|
2022-07-19 21:20:23 +00:00
|
|
|
optimizeFonts: false,
|
2022-01-14 23:05:12 +00:00
|
|
|
experimental: {
|
2022-08-30 04:56:11 +00:00
|
|
|
scrollRestoration: true,
|
2022-01-14 23:05:12 +00:00
|
|
|
externalDir: true,
|
2022-05-22 08:36:05 +00:00
|
|
|
modularizeImports: {
|
2022-05-22 19:40:34 +00:00
|
|
|
'@heroicons/react/solid/?(((\\w*)?/?)*)': {
|
|
|
|
transform: '@heroicons/react/solid/{{ matches.[1] }}/{{member}}',
|
|
|
|
},
|
|
|
|
'@heroicons/react/outline/?(((\\w*)?/?)*)': {
|
|
|
|
transform: '@heroicons/react/outline/{{ matches.[1] }}/{{member}}',
|
|
|
|
},
|
|
|
|
|
2022-05-22 08:36:05 +00:00
|
|
|
lodash: {
|
|
|
|
transform: 'lodash/{{member}}',
|
|
|
|
},
|
|
|
|
},
|
2022-01-14 23:05:12 +00:00
|
|
|
},
|
2021-12-10 23:43:22 +00:00
|
|
|
images: {
|
2022-09-08 03:58:51 +00:00
|
|
|
domains: [
|
|
|
|
'manifold.markets',
|
|
|
|
'lh3.googleusercontent.com',
|
|
|
|
'i.imgur.com',
|
|
|
|
'firebasestorage.googleapis.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,
|
|
|
|
},
|
2022-08-17 16:21:20 +00:00
|
|
|
{
|
|
|
|
source: '/about',
|
|
|
|
destination: ABOUT_PAGE_URL,
|
|
|
|
permanent: false,
|
|
|
|
},
|
2022-06-07 15:37:23 +00:00
|
|
|
{
|
|
|
|
source: '/analytics',
|
|
|
|
destination: '/stats',
|
|
|
|
permanent: true,
|
|
|
|
},
|
2022-02-21 18:50:05 +00:00
|
|
|
]
|
|
|
|
},
|
2021-12-02 23:49:46 +00:00
|
|
|
}
|