FullPage Scroll은 나쁩니다. && 이거 솔직히 추가해줘야한다고 봄
This commit is contained in:
parent
3a6fffedb9
commit
296439b044
13 changed files with 69 additions and 72 deletions
|
|
@ -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",
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue