Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Sep 30, 2024
1 parent 9e065cb commit 55a20fc
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/delegator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ COPY . /app
WORKDIR /app
RUN yarn install

EXPOSE 3001

CMD ["yarn", "start"]
2 changes: 1 addition & 1 deletion packages/web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const Home: NextPage = () => {
setMigrationMsg(`Migration in progress; this may take between 6 to 300 seconds. Please check back later.`);

try {
const response = await fetch('http://localhost:3001/api/migrate', {
const response = await fetch('https://migration-helper.darwinia.network/api/migrate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
1 change: 0 additions & 1 deletion packages/web/tsconfig.tsbuildinfo

This file was deleted.

32 changes: 32 additions & 0 deletions packages/web/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Referrer-Policy",
"value": "origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=2592000"
}
]
}
],
"rewrites": [
{
"source": "/api/:path(.*)",
"destination": "http://g1.generic.darwinia.network:3001/api/:path*"
}
]
}

0 comments on commit 55a20fc

Please sign in to comment.