๐Ÿ“๐Ÿ–ผ๏ธ๐Ÿน 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.

fix that, wow. basics.

+16 -7
+16 -7
index.ts
··· 16 16 count: number; 17 17 } | null; 18 18 if (userCount && userCount.count === 0) { 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 - } 19 + const username = (() => { 20 + if (Bun.env.INIT_USERNAME) { 21 + console.log("Creating user from env vars: " + Bun.env.INIT_USERNAME); 22 + return Bun.env.INIT_USERNAME; 23 + } else { 24 + return prompt("Enter a username:"); 25 + } 26 + })(); 27 + 28 + const password = (() => { 29 + if (Bun.env.INIT_PASSWORD) { 30 + return Bun.env.INIT_PASSWORD; 31 + } else { 32 + return prompt("Enter a password:"); 33 + } 34 + })(); 26 35 27 36 if (username && password) { 28 37 const passwordHash = await Bun.password.hash(password);