🌠 Vite is Gone!
This commit is contained in:
parent
167e9d6197
commit
3f1b62edf4
43 changed files with 1360 additions and 4482 deletions
18
src/index.tsx
Normal file
18
src/index.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { serve } from "bun";
|
||||
import index from "./index.html";
|
||||
|
||||
const server = serve({
|
||||
routes: {
|
||||
// Serve index.html for all unmatched routes.
|
||||
"/*": index,
|
||||
'/timeline': Response.redirect("/#timeline"),
|
||||
'/ads.txt': new Response("google.com, pub-4588517451789913, DIRECT, f08c47fec0942fa0", {
|
||||
headers: {
|
||||
"content-type": "text/plain",
|
||||
},
|
||||
}),
|
||||
},
|
||||
development: process.env.NODE_ENV !== "production",
|
||||
});
|
||||
|
||||
console.log(`🚀 Server running at ${server.url}`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue