Skip to content

Commit

Permalink
remove notFound
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon committed Jan 9, 2025
1 parent 94808e6 commit 7b86730
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/app/hooks/useShowWalletDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {polkadotAccountAtom} from '@phala/store'
import {useAtom} from 'jotai'
import {useRouter} from 'next/router'

const whiteListPathnames = ['/[chain]', '/wiki', '/staking', '/khala-assets']
const whiteListPathnames = ['/wiki', '/staking', '/khala-assets', '/']

const useShowWalletDialog = (): void => {
const router = useRouter()
Expand Down
2 changes: 1 addition & 1 deletion apps/app/pages/khala-assets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Page = ({

export const getServerSideProps: GetServerSideProps = async (ctx) => {
return {
notFound: process.env.NODE_ENV === 'production',
// notFound: process.env.NODE_ENV === 'production',
props: {cookie: ctx.req.headers.cookie},
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/app/pages/staking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Page = ({

export const getServerSideProps: GetServerSideProps = async (ctx) => {
return {
notFound: process.env.NODE_ENV === 'production',
// notFound: process.env.NODE_ENV === 'production',
props: {
cookie: ctx.req.headers.cookie,
},
Expand Down

0 comments on commit 7b86730

Please sign in to comment.