Deploy with nostrdeploy

This commit is contained in:
Alex Gleason committed 2025-07-18 23:35:12 -05:00
1 parent 75e2830057
commit 9b35a16d7b
5 files changed
+80 -175

No files matched your search

+3
View File
@@ -2,6 +2,7 @@ import LightningFS from '@isomorphic-git/lightning-fs';
import git from 'isomorphic-git';
import http from 'isomorphic-git/http/web';
import { Buffer } from 'buffer';
import { generateSecretKey, nip19 } from 'nostr-tools';
// Polyfill Buffer for browser
if (typeof window !== 'undefined') {
@@ -15,6 +16,7 @@ export interface Project {
id: string;
name: string;
path: string;
nsec: string;
createdAt: Date;
lastModified: Date;
}
@@ -46,6 +48,7 @@ export class FileSystemManager {
id,
name,
path: projectPath,
nsec: nip19.nsecEncode(generateSecretKey()),
createdAt: new Date(),
lastModified: new Date(),
};