14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
import { FileHelper, z } from '@start9labs/start-sdk'
|
|
import { sdk } from '../sdk'
|
|
|
|
/**
|
|
* Persists package data that the upstream app does not store itself.
|
|
* Here: the login password Premier Gunner injects into the app as PG_PASSWORD.
|
|
*/
|
|
export const store = FileHelper.json(
|
|
{ base: sdk.volumes.main, subpath: 'store.json' },
|
|
z.object({
|
|
password: z.string(),
|
|
}),
|
|
)
|