Skip to content

Commit

Permalink
Dynamic user path
Browse files Browse the repository at this point in the history
  • Loading branch information
Yat3s committed Sep 8, 2023
1 parent b43f286 commit 27d7485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hydrooj/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { nanoid } from 'nanoid';
import Schema from 'schemastery';
import { Logger } from './logger';
import { NestKeys } from './typeutils';
import * as os from 'os';

Check failure on line 6 in packages/hydrooj/src/settings.ts

View workflow job for this annotation

GitHub Actions / build

`os` import should occur before import of `./logger`

const defaultPath = process.env.CI ? '/tmp/file'
: process.env.DEFAULT_STORE_PATH || '/Users/zhangke/data/file/hydro';
: process.env.DEFAULT_STORE_PATH || `${os.homedir()}/kathy/data/file`;
const FileSetting = Schema.intersect([
Schema.object({
type: Schema.union([
Expand Down

0 comments on commit 27d7485

Please sign in to comment.