refactor: migrate TrumpSignal to TypeScript monorepo and Pages Router
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/** @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
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user