You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,18 @@ VITE_BTC_CONFIRMATIONS=6
94
94
95
95
# Default position id for reservation
96
96
VITE_DEFAULT_POSITION_ID=
97
+
98
+
# Netlify site id
99
+
NETLIFY_SITE_ID
100
+
101
+
# Personal auth token
102
+
NETLIFY_AUTH_TOKEN
97
103
```
98
104
105
+
### How to obtain these variables from Netlify
106
+
-**NETLIFY_SITE_ID:** Go to your site in the Netlify dashboard, then navigate to Site settings > General > Site details. The Site ID (API ID) will be listed there.
107
+
-**NETLIFY_AUTH_TOKEN:** Go to https://app.netlify.com/user/applications and create a new Personal access token. Copy and use this token as your NETLIFY_AUTH_TOKEN.
108
+
99
109
## Contract Addresses Configuration
100
110
The application uses different contract addresses for different networks. These addresses are configured in `src/constants/contracts.ts`. To modify the contract addresses:
101
111
@@ -130,12 +140,8 @@ npm run test
130
140
# Run tests with coverage
131
141
npm run test:coverage
132
142
```
133
-
134
143
## Deployment
135
-
The project is deployed using github actions and netlify. Set the followings actions variables in order to correctly deploy to netlify:
136
-
137
-
NETLIFY_SITE_ID
138
-
NETLIFY_AUTH_TOKEN
144
+
The project is deployed using github actions and netlify. All the previously mentioned env variables must be added to the actions secrets on github.
139
145
140
146
### Continuous deployment trigger
141
147
On every new commit to `develop` (netflify preview) and `main` (netlify production)
@@ -148,3 +154,4 @@ On every new commit to `develop` (netflify preview) and `main` (netlify producti
0 commit comments