-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
38 lines (36 loc) · 860 Bytes
/
next.config.js
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
37
38
/** @type {import('next').NextConfig} */
const { withPlausibleProxy } = require('next-plausible')
const nextConfig = {
reactStrictMode: false,
experimental: {
appDir: false,
allowMiddlewareResponseBody: true,
},
transpilePackages: ['@farcaster/frame-sdk'],
images: {
domains: ['gateway.pinata.cloud'],
},
async rewrites() {
return [
{
source: '/api/frame/image/latest',
destination: '/api/frame/image/latest'
},
]
},
async headers() {
return [
{
source: '/api/:path*',
headers: [
{ key: 'Access-Control-Allow-Origin', value: '*' },
{ key: 'Access-Control-Allow-Methods', value: 'GET' },
{ key: 'Access-Control-Allow-Headers', value: 'Content-Type' },
],
},
]
}
}
module.exports = withPlausibleProxy()(
nextConfig
)