fix: add placeholder frontend dist for development (#5492)

This commit is contained in:
Furzi 2026-01-16 22:58:25 +08:00
parent 7dbc31e5f7
commit 05cd6c5f6a
3 changed files with 26 additions and 10 deletions

5
.gitignore vendored
View File

@ -20,7 +20,10 @@ docs/plans/
# Docker Compose Environment File
.env
dist
# Embedded frontend dist (except placeholder files)
server/router/frontend/dist/*
!server/router/frontend/dist/.gitkeep
!server/router/frontend/dist/index.html
# VSCode settings
.vscode

2
server/router/frontend/dist/.gitkeep vendored Normal file
View File

@ -0,0 +1,2 @@
# This file ensures the dist directory exists for Go embed.
# Run `cd web && pnpm release` to build the frontend assets here.

View File

@ -1,11 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Memos</title>
</head>
<body>
No embeddable frontend found.
</body>
<html>
<head>
<meta charset="utf-8">
<title>Memos - Frontend Not Built</title>
<style>
body { font-family: system-ui, sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; background: #f5f5f5; }
.container { text-align: center; padding: 2rem; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); max-width: 500px; }
h1 { color: #333; margin-bottom: 1rem; }
p { color: #666; line-height: 1.6; }
code { background: #e8e8e8; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.9rem; }
</style>
</head>
<body>
<div class="container">
<h1>🚧 Frontend Not Built</h1>
<p>The frontend assets have not been built yet. Please run:</p>
<p><code>cd web && pnpm install && pnpm release</code></p>
<p>Then restart the server.</p>
</div>
</body>
</html>