Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# Database connection URL for local PostgreSQL
# Connect to the 'superset' database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/superset

STUB_API_KEY=

# Electron Desktop App
# Vite dev server port for Electron renderer process
# Default: 4927. Auto-increments when creating new worktrees to avoid port conflicts
VITE_DEV_SERVER_PORT=4927

# Enable new UI layout (workspace tabs at top, worktree sidebar)
# Set to 'true' to enable the new mock UI for visual iteration
ENABLE_NEW_UI=false
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/superset
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ mise.toml
# Turbo
.turbo
.envrc

# Superset worktrees
.superset/worktrees
22 changes: 0 additions & 22 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,28 +179,6 @@ const result = await window.ipcRenderer.invoke("my-channel", {
- `types.ts` - Data models
- `ipc-channels.ts` - IPC type definitions

### Running Multiple Instances

You can run multiple Electron instances simultaneously for parallel development. See `apps/desktop/MULTIPLE_INSTANCES.md` for full documentation.

**Quick start:**
```bash
# Method 1: Auto-increment port when creating worktrees
# The update-port.sh script runs automatically during worktree setup
# and increments VITE_DEV_SERVER_PORT in the root .env

# Method 2: Manual port update
./update-port.sh # Increments port in root .env
cd apps/desktop && bun dev

# Method 3: Helper scripts (override .env)
./dev-instance.sh instance2 4928
```

Each instance needs:
- **Separate dev server port** - Set via `VITE_DEV_SERVER_PORT` in root `.env`
- **Separate user data directory** - Pass via `--user-data-dir` flag

### Environment Variable Loading

The desktop app loads environment variables from the monorepo root `.env` file:
Expand Down
1 change: 1 addition & 0 deletions apps/blog/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions apps/desktop/electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export default defineConfig({
define: {
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),
"process.platform": JSON.stringify(process.platform),
"import.meta.env.ENABLE_NEW_UI": JSON.stringify(
process.env.ENABLE_NEW_UI || "false",
),
"import.meta.env.DEV_SERVER_PORT": JSON.stringify(getPortSync()),
},

Expand Down
Loading
Loading