FullPage Scroll은 나쁩니다. && 이거 솔직히 추가해줘야한다고 봄

This commit is contained in:
imnyang 2025-05-02 22:55:46 +09:00
commit 296439b044
13 changed files with 69 additions and 72 deletions

View file

@ -1,16 +1,27 @@
import { serve } from "bun";
import index from "./index.html";
import serveStatic from "serve-static-bun";
// Parse command line arguments for port
const args = process.argv.slice(2);
const portArgIndex = args.findIndex(arg => arg === "--port");
const port = portArgIndex !== -1 && args[portArgIndex + 1] ?
parseInt(args[portArgIndex + 1]) : 3000;
const server = serve({
port: port,
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",
"/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",
});