Skip to content

Conversation

@TooAngel
Copy link
Contributor

Summary

Fixes the webapp to properly serve the landing page instead of the Vite React shell.

Problem

The webapp was serving the Vite build output (dist/index.html - "Worlddriven Admin") instead of the actual landing page (public/index.html).

Solution

Properly separate static pages from Vite-processed React pages:

Static pages (served directly from public/):

  • Landing page (index.html)
  • Imprint, Privacy Policy
  • Images, CSS

React pages (Vite entry points, built to dist/):

  • Dashboard
  • Admin
  • PR view

Changes

  • Move React HTML entry points to root directory (Vite requires this)
  • Configure Vite with rollupOptions.input for multi-page app
  • Set publicDir: false so Vite doesn't copy/overwrite public files
  • Update server to serve static from public/, React from dist/
  • Fix HTML files to use consistent script/css references

Architecture

public/              → Static files (Express serves directly)
  index.html         → Landing page  
  imprint.html
  style.css, images/

dashboard.html       → Vite entry point → dist/dashboard.html
pull_request.html    → Vite entry point → dist/pull_request.html
admin.html           → Vite entry point → dist/admin.html

Test Plan

  • Landing page shows marketing content (not React shell)
  • Dashboard loads React app correctly
  • PR view loads React app correctly
  • Build succeeds without errors

- Move React HTML entry points (dashboard, admin, pull_request) to root
- Remove old root index.html (Vite shell) - landing page is in public/
- Configure Vite with multi-page rollupOptions.input for React pages only
- Set publicDir: false so Vite doesn't interfere with public/ folder
- Update server to serve static files from public/, React from dist/
- Fix HTML files to use consistent script/css references

Architecture:
- public/ contains static pages (landing, imprint, privacy) served directly
- Root HTML files are Vite entry points, built to dist/
- In production: static from public/, React pages from dist/
- In development: Vite middleware transforms React pages on the fly
@worlddriven
Copy link

worlddriven bot commented Jan 18, 2026

🤖 Worlddriven Status

📊 Live Status Dashboard

🗓️ Merge Date: 2026-01-19 at 13:06:04 UTC (today)
📅 Started: 2026-01-18 at 07:06:04 UTC
Speed Factor: 0.13 (88% faster due to reviews)
Positive votes: 7/8 contribution weight (coefficient: 0.88)
📈 Base Merge Time: 10 days → Current: 1 days

🎯 Want to influence when this merges?

Your review matters! As a contributor to this project, your voice helps determine the merge timeline.

How to review:

  1. Check the changes
    Files changed

  2. Leave your review
    Review changes

Your options:

  • ✅ Agree & Speed Up: Approve Approving makes this merge faster
  • ❌ Disagree & Slow Down: Request changes Requesting changes delays the merge

💡 Pro tip: The more contributors who agree, the faster this gets merged!

📊 View detailed stats on the dashboard

📋 Recent Activity

2026-01-18, 07:06:11 - Pull request opened
2026-01-19, 13:51:51 - Pull request merged by worlddriven ✅


This comment is automatically updated by worlddriven

@worlddriven worlddriven bot merged commit 9505ea2 into worlddriven:main Jan 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant