-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
36 lines (35 loc) · 1023 Bytes
/
next.config.mjs
File metadata and controls
36 lines (35 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/** @type {import('next').NextConfig} */
const nextConfig = {
// Temporarily ignore build errors to deploy debug endpoint
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
// Configure static export behavior for dynamic routes
experimental: {
serverComponentsExternalPackages: ['@vercel/build-utils'],
},
// Force dynamic rendering for API routes that use request.url
outputFileTracing: true,
// Silence warnings
// https://github.com/WalletConnect/walletconnect-monorepo/issues/1908
webpack: (config) => {
config.externals.push("pino-pretty", "lokijs", "encoding");
return config;
},
async redirects() {
const id = process.env.FARCASTER_HOSTED_MANIFEST_ID;
return id
? [
{
source: '/.well-known/farcaster.json',
destination: `https://api.farcaster.xyz/miniapps/hosted-manifest/${id}`,
permanent: false, // 307
},
]
: [];
},
};
export default nextConfig;