Skip to content

Commit b5a9ac0

Browse files
Merge pull request #402 from ethereumfollowprotocol/add-safe
2 parents f940b99 + b119434 commit b5a9ac0

5 files changed

Lines changed: 27 additions & 5 deletions

File tree

next.config.mjs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ const nextConfig = {
7575
key: 'X-DNS-Prefetch-Control',
7676
value: 'on',
7777
},
78-
{
79-
key: 'X-Frame-Options',
80-
value: 'SAMEORIGIN',
81-
},
8278
{
8379
key: 'X-Content-Type-Options',
8480
value: 'nosniff',
@@ -105,6 +101,23 @@ const nextConfig = {
105101
},
106102
],
107103
},
104+
{
105+
source: '/manifest.json',
106+
headers: [
107+
{
108+
key: 'Access-Control-Allow-Origin',
109+
value: '*',
110+
},
111+
{
112+
key: 'Access-Control-Allow-Methods',
113+
value: 'GET',
114+
},
115+
{
116+
key: 'Access-Control-Allow-Headers',
117+
value: 'X-Requested-With, content-type, Authorization',
118+
},
119+
],
120+
},
108121
// {
109122
// source: '/service-worker.js',
110123
// headers: [

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
},
1919
"dependencies": {
2020
"@next/third-parties": "15.1.6",
21+
"@safe-global/safe-apps-provider": "^0.18.5",
22+
"@safe-global/safe-apps-sdk": "^9.1.0",
2123
"@rainbow-me/rainbowkit": "^2.2.4",
2224
"@react-spring/web": "^9.7.5",
2325
"@sentry/nextjs": "^8.55.0",

public/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Ethereum Follow Protocol",
3+
"description": "A native Ethereum protocol for following and tagging Ethereum accounts.",
4+
"iconPath": "assets/logo.svg"
5+
}

src/lib/wagmi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from '@rainbow-me/rainbowkit/wallets'
1010
import { mainnet, optimism, base } from 'wagmi/chains'
1111
import { type Chain, connectorsForWallets } from '@rainbow-me/rainbowkit'
12+
import { safe } from 'wagmi/connectors'
1213
import { http, fallback, createStorage, cookieStorage, createConfig } from 'wagmi'
1314
import { createThirdwebClient, defineChain as thirdwebDefineChain } from 'thirdweb'
1415
import { inAppWalletConnector } from '@thirdweb-dev/wagmi-adapter'
@@ -133,7 +134,7 @@ export const chains: [ChainWithDetails, ...ChainWithDetails[]] = [
133134
},
134135
]
135136

136-
const combinedConnectors = [unicornConnector, ...connectors]
137+
const combinedConnectors = [unicornConnector, ...connectors, safe()]
137138

138139
const config = createConfig({
139140
ssr: true,

src/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '*.jpeg'
2+
declare module '*.jpg'
23
declare module '*.png'
34
declare module '*.svg'

0 commit comments

Comments
 (0)