Initial commit: Premier Gunner tracker + StartOS 0.4.0 s9pk package
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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(),
|
||||
}),
|
||||
)
|
||||
Reference in New Issue
Block a user