fix directory error (#676)

This commit is contained in:
Daniel Chew 2023-03-09 14:01:58 +09:00 committed by GitHub
parent af77a2a987
commit 06d58bad5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ import { classNames } from '../utils/classNames'
export const getServerSideProps: GetServerSideProps = async () => {
const KEYPAIR_BASE_PATH = process.env.KEYPAIR_BASE_PATH || ''
const OPS_WALLET = fs.existsSync(KEYPAIR_BASE_PATH)
? JSON.parse(fs.readFileSync(KEYPAIR_BASE_PATH, 'ascii'))
const OPS_WALLET = fs.existsSync(`${KEYPAIR_BASE_PATH}/ops-key`)
? JSON.parse(fs.readFileSync(`${KEYPAIR_BASE_PATH}/ops-key`, 'ascii'))
: null
const MAPPINGS_BASE_PATH = process.env.MAPPINGS_BASE_PATH || ''