24 lines
612 B
JavaScript
24 lines
612 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
export default {
|
|
reactStrictMode: true,
|
|
async rewrites() {
|
|
return [
|
|
'icon',
|
|
'apple-icon',
|
|
'opengraph-image',
|
|
'robots.txt',
|
|
'sitemap.xml',
|
|
'manifest.webmanifest',
|
|
].map((name) => ({ source: '/' + name, destination: '/api/' + name.split('.')[0] }))
|
|
},
|
|
transpilePackages: ['@trumpsignal/ui', '@trumpsignal/contracts'],
|
|
webpack(config) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
'@react-native-async-storage/async-storage': false,
|
|
'pino-pretty': false,
|
|
}
|
|
return config
|
|
},
|
|
}
|