Add Facebook Customer Chat for the blogging system

This commit is contained in:
txs
2022-04-06 04:37:09 +08:00
parent 6de1102bfb
commit 357f7dc246
4 changed files with 47 additions and 15 deletions

View File

@@ -6,16 +6,28 @@ module.exports = withBundleAnalyzer({
webpack5: true
},
images: {
domains: ['gravatar.com', 'www.notion.so', 'avatars.githubusercontent.com', 'images.unsplash.com'] // 允许next/image加载的图片 域名
domains: [
'gravatar.com',
'www.notion.so',
'avatars.githubusercontent.com',
'images.unsplash.com'
] // 允许next/image加载的图片 域名
},
async headers () {
async headers() {
return [
{
source: '/:path*{/}?',
headers: [
{ key: 'Access-Control-Allow-Credentials', value: 'true' },
{ key: 'Access-Control-Allow-Origin', value: '*' },
{
key: 'Permissions-Policy',
value: 'interest-cohort=()'
key: 'Access-Control-Allow-Methods',
value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT'
},
{
key: 'Access-Control-Allow-Headers',
value:
'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version'
}
]
}