Skip to content

Commit

Permalink
fix: prod runtime error (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon authored Nov 1, 2023
1 parent 8272514 commit 3342ec6
Show file tree
Hide file tree
Showing 13 changed files with 306 additions and 252 deletions.
4 changes: 2 additions & 2 deletions apps/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@sveltejs/adapter-vercel": "^3.0.3",
"@sveltejs/kit": "^1.27.1",
"@sveltejs/kit": "^1.27.2",
"svelte": "^4.2.2",
"svelte-check": "^3.5.2",
"tslib": "^2.6.2",
Expand All @@ -20,7 +20,7 @@
},
"type": "module",
"dependencies": {
"@phala/util": "workspace:^",
"@phala/util": "workspace:*",
"@rgossiaux/svelte-headlessui": "^2.0.0",
"@rgossiaux/svelte-heroicons": "^0.1.2",
"@tanstack/svelte-query": "^4.36.1",
Expand Down
20 changes: 10 additions & 10 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@mui/icons-material": "^5.14.15",
"@mui/lab": "5.0.0-alpha.150",
"@mui/material": "^5.14.15",
"@mui/icons-material": "^5.14.16",
"@mui/lab": "5.0.0-alpha.151",
"@mui/material": "^5.14.16",
"@mui/x-data-grid": "^6.17.0",
"@phala/lib": "workspace:^",
"@phala/store": "workspace:^",
"@phala/util": "workspace:^",
"@phala/lib": "workspace:*",
"@phala/store": "workspace:*",
"@phala/util": "workspace:*",
"@polkadot/api": "^10.10.1",
"@polkadot/extension-inject": "^0.46.5",
"@polkadot/keyring": "^12.5.1",
Expand All @@ -40,28 +40,28 @@
"date-fns": "^2.30.0",
"decimal.js": "^10.4.3",
"eslint": "^8.52.0",
"eslint-config-next": "^14.0.0",
"eslint-config-next": "^14.0.1",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.12.6",
"jotai": "^2.5.0",
"jotai-devtools": "^0.7.0",
"lodash-es": "^4.17.21",
"mutative": "^0.6.0",
"next": "^14.0.0",
"next": "^14.0.1",
"notistack": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intersection-observer": "^9.5.2",
"react-markdown": "^9.0.0",
"react-snap-carousel": "^0.3.2",
"recharts": "^2.9.1",
"recharts": "^2.9.2",
"sharp": "^0.32.6",
"swr": "2.2.2",
"typescript": "^5.2.2"
},
"devDependencies": {
"@next/bundle-analyzer": "^14.0.0",
"@next/bundle-analyzer": "^14.0.1",
"@svgr/webpack": "^8.1.0",
"@swc-jotai/debug-label": "^0.1.0",
"@swc-jotai/react-refresh": "^0.1.0",
Expand Down
11 changes: 1 addition & 10 deletions apps/app/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import type {GetServerSideProps, NextPage} from 'next'

export const getServerSideProps: GetServerSideProps = async () => {
return {
redirect: {
destination: '/khala',
permanent: false,
},
}
}
import type {NextPage} from 'next'

const Page: NextPage = () => null

Expand Down
24 changes: 12 additions & 12 deletions apps/index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@metamask/detect-provider": "^2.0.0",
"@mui/icons-material": "^5.14.15",
"@mui/lab": "5.0.0-alpha.150",
"@mui/material": "^5.14.15",
"@next/bundle-analyzer": "^14.0.0",
"@phala/index": "^1.0.39",
"@phala/lib": "workspace:^",
"@phala/store": "workspace:^",
"@phala/util": "workspace:^",
"@mui/icons-material": "^5.14.16",
"@mui/lab": "5.0.0-alpha.151",
"@mui/material": "^5.14.16",
"@next/bundle-analyzer": "^14.0.1",
"@phala/index": "^1.0.40",
"@phala/lib": "workspace:*",
"@phala/store": "workspace:*",
"@phala/util": "workspace:*",
"@polkadot/api": "^10.10.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
Expand All @@ -33,7 +33,7 @@
"jotai": "^2.5.0",
"jotai-devtools": "^0.7.0",
"lodash-es": "^4.17.21",
"next": "^14.0.0",
"next": "^14.0.1",
"next-images": "^1.8.5",
"notistack": "^3.0.1",
"react": "^18.2.0",
Expand All @@ -42,16 +42,16 @@
"wretch": "^2.7.0"
},
"devDependencies": {
"@phala/eslint-config": "workspace:^",
"@phala/eslint-config": "workspace:*",
"@svgr/webpack": "^8.1.0",
"@swc-jotai/debug-label": "^0.1.0",
"@swc-jotai/react-refresh": "^0.1.0",
"@types/lodash-es": "^4.17.10",
"@types/node": "^18.18.7",
"@types/node": "^18.18.8",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"eslint": "^8.52.0",
"eslint-config-next": "^14.0.0",
"eslint-config-next": "^14.0.1",
"typescript": "^5.2.2"
}
}
22 changes: 11 additions & 11 deletions apps/subbridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@emotion/styled": "^11.11.0",
"@metamask/detect-provider": "^2.0.0",
"@metamask/providers": "^13.1.0",
"@mui/icons-material": "^5.14.15",
"@mui/lab": "5.0.0-alpha.150",
"@mui/material": "^5.14.15",
"@next/bundle-analyzer": "^14.0.0",
"@phala/lib": "workspace:^",
"@phala/store": "workspace:^",
"@phala/util": "workspace:^",
"@mui/icons-material": "^5.14.16",
"@mui/lab": "5.0.0-alpha.151",
"@mui/material": "^5.14.16",
"@next/bundle-analyzer": "^14.0.1",
"@phala/lib": "workspace:*",
"@phala/store": "workspace:*",
"@phala/util": "workspace:*",
"@polkadot/api": "^10.10.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
Expand All @@ -34,21 +34,21 @@
"ethers": "^5.7.2",
"jotai": "^2.5.0",
"jotai-devtools": "^0.7.0",
"next": "^14.0.0",
"next": "^14.0.1",
"next-images": "^1.8.5",
"notistack": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"swr": "2.2.2"
},
"devDependencies": {
"@phala/eslint-config": "workspace:^",
"@phala/eslint-config": "workspace:*",
"@svgr/webpack": "^8.1.0",
"@types/node": "^18.18.7",
"@types/node": "^18.18.8",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"eslint": "^8.52.0",
"eslint-config-next": "^14.0.0",
"eslint-config-next": "^14.0.1",
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"devDependencies": {
"@total-typescript/ts-reset": "^0.5.1",
"@types/node": "^18.18.7",
"@types/node": "^18.18.8",
"husky": "^8.0.3",
"turbo": "^1.10.16",
"typescript": "^5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"main": "index.js",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^39.1.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"check": "tsc --project ./tsconfig.json --noEmit"
},
"dependencies": {
"@phala/util": "workspace:^",
"@phala/util": "workspace:*",
"decimal.js": "^10.4.3"
},
"peerDependencies": {
"@phala/store": "workspace:^",
"@phala/store": "workspace:*",
"@polkadot/api": "^10",
"@polkadot/types": "^10",
"@talismn/connect-wallets": "^1.1.3",
"jotai": "^2",
"react": ">=17"
},
"devDependencies": {
"@phala/eslint-config": "workspace:^"
"@phala/eslint-config": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/polkadot-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@phala/typedefs": "^0.2.33",
"@polkadot/typegen": "^10.10.1",
"@types/node": "^18.18.7",
"@types/node": "^18.18.8",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
}
},
"devDependencies": {
"@phala/eslint-config": "workspace:^"
"@phala/eslint-config": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"decimal.js": "^10.4.3"
},
"devDependencies": {
"@phala/eslint-config": "workspace:^"
"@phala/eslint-config": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
".svelte-kit/**",
".vercel/**"
],
"env": ["CONTEXT", "NODE_ENV"]
"env": ["CONTEXT", "NODE_ENV", "VERCEL_ENV"]
},
"lint": {
"outputs": [],
Expand Down
Loading

3 comments on commit 3342ec6

@vercel
Copy link

@vercel vercel bot commented on 3342ec6 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

index – ./apps/index

index-git-main-phala.vercel.app
index-phala.vercel.app
phala-index.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 3342ec6 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

subbridge – ./apps/subbridge

subbridge-phala.vercel.app
subbridge.io
subbridge-git-main-phala.vercel.app
subbridge.vercel.app
www.subbridge.io

@vercel
Copy link

@vercel vercel bot commented on 3342ec6 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

analytics – ./apps/analytics

analytics-plum.vercel.app
analytics-phala.vercel.app
analytics-git-main-phala.vercel.app
analytics.phala.network

Please sign in to comment.