Update Dockerfile
This commit is contained in:
@ -11,9 +11,7 @@ import { createUser, getUser } from "../../../utils/helpers/userHelpers";
|
||||
const pass = generateRandomPassword();
|
||||
createUser("admin", pass).then((returned) => {
|
||||
if (returned === true) {
|
||||
console.log(
|
||||
`Created admin account. Username: admin, Password: ${pass}, uploadKey: ${returned.uploadKey}`
|
||||
);
|
||||
console.log(`Created admin account. Username: admin, Password: ${pass}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -38,7 +38,13 @@ export default function File(props) {
|
||||
contentType = contentType.toLowerCase();
|
||||
if (contentType.includes("image")) {
|
||||
toShow = (
|
||||
<Image alt={fileId} src={fileUrl} width={width} height={height}></Image>
|
||||
<Image
|
||||
alt={fileId}
|
||||
src={fileUrl}
|
||||
width={width}
|
||||
height={height}
|
||||
unoptimized
|
||||
></Image>
|
||||
);
|
||||
} else if (contentType.includes("video")) {
|
||||
toShow = <video alt={fileId} src={fileUrl} controls></video>;
|
||||
|
@ -33,7 +33,6 @@ export function createFileIO(dir, fileName, bytes) {
|
||||
}
|
||||
|
||||
const fileLocation = dir + path.sep + fileName;
|
||||
console.log(fileLocation);
|
||||
fs.writeFile(
|
||||
fileLocation,
|
||||
bytes,
|
||||
|
Reference in New Issue
Block a user