Add auth bootstrap and database safeguards
This commit is contained in:
@@ -11,7 +11,7 @@ let databasePromise: Promise<Database> | undefined;
|
||||
* imported into browser bundles.
|
||||
*/
|
||||
export function getDatabase(): Promise<Database> {
|
||||
const configuredPath = env.TDR_DATABASE_PATH || './data/shd-build.db';
|
||||
const configuredPath = env.TDR_DATABASE_PATH || './data/shd-build-development.db';
|
||||
|
||||
if (!databasePromise) {
|
||||
databasePromise = connect(resolve(configuredPath));
|
||||
|
||||
Reference in New Issue
Block a user