forked from jsnbuchanan/crowd-funder-for-time-pwa
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user