feat(quotesdb): set up Trunk.toml and index.html for UI build

- Trunk.toml: target index.html, proxy /api/* to localhost:3000
- index.html: link CSS, Rust wasm binary (ui), copy _redirects

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
quotesdb
Elijah Voigt 3 months ago
parent 8da0d754a0
commit 83f4aacdf5

@ -1,2 +1,6 @@
[build] [build]
target = "index.html" target = "index.html"
[[proxy]]
rewrite = "/api"
backend = "http://localhost:3000"

@ -2,9 +2,13 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>QuotesDB</title> <title>QuotesDB</title>
<link data-trunk rel="css" href="src/bin/ui/style.css"/>
<link data-trunk rel="rust" data-bin="ui" /> <link data-trunk rel="rust" data-bin="ui" />
<link data-trunk rel="copy-file" href="_redirects"/> <link data-trunk rel="copy-file" href="_redirects"/>
</head> </head>
<body></body> <body>
<div id="app"></div>
</body>
</html> </html>

Loading…
Cancel
Save