Skip to content

Commit

Permalink
fix: prod runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon committed Oct 29, 2023
1 parent 1ba25d2 commit cebe4e5
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 48 deletions.
2 changes: 1 addition & 1 deletion apps/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions apps/app/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const nextConfig = {
]
},
experimental: {
esmExternals: false,
swcPlugins: [
['@swc-jotai/debug-label', {}],
['@swc-jotai/react-refresh', {}],
Expand Down
6 changes: 3 additions & 3 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"@mui/lab": "5.0.0-alpha.150",
"@mui/material": "^5.14.15",
"@mui/x-data-grid": "^6.16.3",
"@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 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
8 changes: 4 additions & 4 deletions apps/index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@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:^",
"@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 @@ -42,7 +42,7 @@
"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",
Expand Down
8 changes: 4 additions & 4 deletions apps/subbridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"@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:^",
"@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 @@ -42,7 +42,7 @@
"swr": "2.2.2"
},
"devDependencies": {
"@phala/eslint-config": "workspace:^",
"@phala/eslint-config": "workspace:*",
"@svgr/webpack": "^8.1.0",
"@types/node": "^18.18.7",
"@types/react": "^18.2.33",
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/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:*"
}
}
42 changes: 21 additions & 21 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3632,7 +3632,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@phala/analytics@workspace:apps/analytics"
dependencies:
"@phala/util": "workspace:^"
"@phala/util": "workspace:*"
"@rgossiaux/svelte-headlessui": "npm:^2.0.0"
"@rgossiaux/svelte-heroicons": "npm:^0.1.2"
"@sveltejs/adapter-vercel": "npm:^3.0.3"
Expand Down Expand Up @@ -3673,9 +3673,9 @@ __metadata:
"@mui/material": "npm:^5.14.15"
"@mui/x-data-grid": "npm:^6.16.3"
"@next/bundle-analyzer": "npm:^14.0.0"
"@phala/lib": "workspace:^"
"@phala/store": "workspace:^"
"@phala/util": "workspace:^"
"@phala/lib": "workspace:*"
"@phala/store": "workspace:*"
"@phala/util": "workspace:*"
"@polkadot/api": "npm:^10.10.1"
"@polkadot/extension-inject": "npm:^0.46.5"
"@polkadot/keyring": "npm:^12.5.1"
Expand Down Expand Up @@ -3718,7 +3718,7 @@ __metadata:
languageName: unknown
linkType: soft

"@phala/eslint-config@workspace:^, @phala/eslint-config@workspace:packages/eslint-config":
"@phala/eslint-config@workspace:*, @phala/eslint-config@workspace:packages/eslint-config":
version: 0.0.0-use.local
resolution: "@phala/eslint-config@workspace:packages/eslint-config"
dependencies:
Expand Down Expand Up @@ -3749,11 +3749,11 @@ __metadata:
"@mui/lab": "npm:5.0.0-alpha.150"
"@mui/material": "npm:^5.14.15"
"@next/bundle-analyzer": "npm:^14.0.0"
"@phala/eslint-config": "workspace:^"
"@phala/eslint-config": "workspace:*"
"@phala/index": "npm:^1.0.39"
"@phala/lib": "workspace:^"
"@phala/store": "workspace:^"
"@phala/util": "workspace:^"
"@phala/lib": "workspace:*"
"@phala/store": "workspace:*"
"@phala/util": "workspace:*"
"@polkadot/api": "npm:^10.10.1"
"@polkadot/util": "npm:^12.5.1"
"@polkadot/util-crypto": "npm:^12.5.1"
Expand Down Expand Up @@ -3800,15 +3800,15 @@ __metadata:
languageName: node
linkType: hard

"@phala/lib@workspace:^, @phala/lib@workspace:packages/lib":
"@phala/lib@workspace:*, @phala/lib@workspace:packages/lib":
version: 0.0.0-use.local
resolution: "@phala/lib@workspace:packages/lib"
dependencies:
"@phala/eslint-config": "workspace:^"
"@phala/util": "workspace:^"
"@phala/eslint-config": "workspace:*"
"@phala/util": "workspace:*"
decimal.js: "npm:^10.4.3"
peerDependencies:
"@phala/store": "workspace:^"
"@phala/store": "workspace:*"
"@polkadot/api": ^10
"@polkadot/types": ^10
"@talismn/connect-wallets": ^1.1.3
Expand Down Expand Up @@ -3851,11 +3851,11 @@ __metadata:
languageName: node
linkType: hard

"@phala/store@workspace:^, @phala/store@workspace:packages/store":
"@phala/store@workspace:*, @phala/store@workspace:packages/store":
version: 0.0.0-use.local
resolution: "@phala/store@workspace:packages/store"
dependencies:
"@phala/eslint-config": "workspace:^"
"@phala/eslint-config": "workspace:*"
peerDependencies:
"@talismn/connect-wallets": ^1.1.3
jotai: ^2
Expand All @@ -3881,10 +3881,10 @@ __metadata:
"@mui/lab": "npm:5.0.0-alpha.150"
"@mui/material": "npm:^5.14.15"
"@next/bundle-analyzer": "npm:^14.0.0"
"@phala/eslint-config": "workspace:^"
"@phala/lib": "workspace:^"
"@phala/store": "workspace:^"
"@phala/util": "workspace:^"
"@phala/eslint-config": "workspace:*"
"@phala/lib": "workspace:*"
"@phala/store": "workspace:*"
"@phala/util": "workspace:*"
"@polkadot/api": "npm:^10.10.1"
"@polkadot/util": "npm:^12.5.1"
"@polkadot/util-crypto": "npm:^12.5.1"
Expand Down Expand Up @@ -3918,11 +3918,11 @@ __metadata:
languageName: node
linkType: hard

"@phala/util@workspace:^, @phala/util@workspace:packages/utils":
"@phala/util@workspace:*, @phala/util@workspace:packages/utils":
version: 0.0.0-use.local
resolution: "@phala/util@workspace:packages/utils"
dependencies:
"@phala/eslint-config": "workspace:^"
"@phala/eslint-config": "workspace:*"
"@polkadot/keyring": "npm:^12.5.1"
"@polkadot/util": "npm:^12.5.1"
decimal.js: "npm:^10.4.3"
Expand Down

0 comments on commit cebe4e5

Please sign in to comment.