refactor: migrate TrumpSignal to TypeScript monorepo and Pages Router

This commit is contained in:
2026-11-03 20:42:30 +08:00
parent de1a903462
commit 1791dbb557
188 changed files with 52461 additions and 2 deletions
+23
View File
@@ -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
},
}