fix: resolve nostr-tools typescript type conflicts

- Update type definitions for nostr-tools
- Fix type compatibility issues
- Add missing type declarations
This commit is contained in:
Matthew Raymer
2025-02-14 03:21:48 +00:00
parent 0cc4a491f5
commit 3f69f67f39
6 changed files with 234 additions and 10 deletions

View File

@@ -19,14 +19,15 @@ const appConfig = loadAppConfig();
export default defineConfig(({ mode }) => {
const isElectron = mode === "electron";
const isCapacitor = mode === "capacitor";
const isPyWebView = mode === "pywebview";
// Completely disable PWA features for electron builds
if (isElectron) {
// Disable PWA features for desktop builds
if (isElectron || isPyWebView) {
process.env.VITE_PWA_ENABLED = 'false';
}
return {
base: isElectron ? "./" : "/",
base: isElectron || isPyWebView ? "./" : "/",
server: {
port: process.env.VITE_PORT || 8080,
fs: {