Skip to content

Commit

Permalink
fix blobstore temp location again
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 1, 2023
1 parent 6edca31 commit 822feb2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/pds/src/config/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os from 'node:os'
import path from 'node:path'
import assert from 'node:assert'
import { DAY, HOUR, SECOND } from '@atproto/common'
Expand Down Expand Up @@ -67,8 +66,7 @@ export const envToCfg = (env: ServerEnvironment): ServerConfig => {
blobstoreCfg = {
provider: 'disk',
location: env.blobstoreDiskLocation,
tempLocation:
env.blobstoreDiskTmpLocation ?? path.join(os.tmpdir(), 'pds/blobs'),
tempLocation: env.blobstoreDiskTmpLocation,
}
} else {
throw new Error('Must configure either S3 or disk blobstore')
Expand Down Expand Up @@ -265,7 +263,7 @@ export type S3BlobstoreConfig = {
export type DiskBlobstoreConfig = {
provider: 'disk'
location: string
tempLocation: string
tempLocation?: string
}

export type IdentityConfig = {
Expand Down

0 comments on commit 822feb2

Please sign in to comment.