๐Ÿ“๐Ÿ–ผ๏ธ๐Ÿน A small thing where I can upload a file and get a link back. https://media.strawmelonjuice.com/
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

*spits on the ground* works fineee

+8 -2
+8 -2
index.ts
··· 16 16 count: number; 17 17 } | null; 18 18 if (userCount && userCount.count === 0) { 19 - const username = prompt("Enter a username:"); 20 - const password = prompt("Enter a password:"); 19 + if (Bun.env.ADMIN_USERNAME && Bun.env.ADMIN_PASSWORD) { 20 + const username = Bun.env.ADMIN_USERNAME; 21 + const password = Bun.env.ADMIN_PASSWORD; 22 + } else { 23 + const username = prompt("Enter a username:"); 24 + const password = prompt("Enter a password:"); 25 + } 21 26 22 27 if (username && password) { 23 28 const passwordHash = await Bun.password.hash(password); ··· 120 125 console.log("Server starting on http://localhost:" + port); 121 126 122 127 Bun.serve({ 128 + maxRequestBodySize: Number.POSITIVE_INFINITY, 123 129 routes: { 124 130 "/": async (req) => { 125 131 console.info("HTTP/200 OK /");