mirror of
https://github.com/siv-org/siv.git
synced 2026-01-10 10:57:59 -05:00
30 lines
699 B
JavaScript
30 lines
699 B
JavaScript
// @ts-check
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
const withMDX = require('@next/mdx')()
|
|
const withTM = require('next-transpile-modules')(['lodash-es'])
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
**/
|
|
const nextConfig = withMDX(
|
|
withTM({
|
|
async redirects() {
|
|
return [
|
|
{
|
|
destination: 'https://docs.siv.org/research-in-progress/ukraine',
|
|
permanent: true,
|
|
source: '/ukraine',
|
|
},
|
|
]
|
|
},
|
|
typescript: {
|
|
// !! WARN !!
|
|
// Dangerously allow production builds to successfully complete even if
|
|
// your project has type errors.
|
|
// ignoreBuildErrors: true,
|
|
},
|
|
}),
|
|
)
|
|
|
|
module.exports = nextConfig
|