From 2cdd802422468661b6668ad4fe6242f210ab02a4 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 2 May 2022 13:31:07 +0200 Subject: [PATCH] Fix env variables --- .env.example | 8 ++++---- docker-compose.yml | 3 ++- src/components/upload/Dropzone.tsx | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index 483a989..452c881 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -APPWRITE_FUNCTION_API_KEY= -PUBLIC_APPWRITE_HOST=http://localhost/v1 -PUBLIC_MAX_FILE_SIZE="300000000" # Must be the same as in the _APP_STORAGE_LIMIT in the Appwrite env file -PUBLIC_DISABLE_REGISTRATION=true \ No newline at end of file +APPWRITE_FUNCTION_API_KEY="" +PUBLIC_APPWRITE_HOST="http://localhost/v1" +PUBLIC_MAX_FILE_SIZE="300000000" # Note: Must be the same as in the _APP_STORAGE_LIMIT in the Appwrite env file +PUBLIC_DISABLE_REGISTRATION="true" # Note: In the Appwrite console you have to change your user limit to 0 if false and else to 1 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index a3f7d72..b9f2b6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,4 +8,5 @@ services: environment: - APPWRITE_FUNCTION_API_KEY=${APPWRITE_FUNCTION_API_KEY} - PUBLIC_APPWRITE_HOST=${PUBLIC_APPWRITE_HOST} - - PUBLIC_MAX_FILE_SIZE=${PUBLIC_MAX_FILE_SIZE} \ No newline at end of file + - PUBLIC_MAX_FILE_SIZE=${PUBLIC_MAX_FILE_SIZE} + - PUBLIC_DISABLE_REGISTRATION=${PUBLIC_DISABLE_REGISTRATION} \ No newline at end of file diff --git a/src/components/upload/Dropzone.tsx b/src/components/upload/Dropzone.tsx index 27b757d..c830af6 100644 --- a/src/components/upload/Dropzone.tsx +++ b/src/components/upload/Dropzone.tsx @@ -53,13 +53,13 @@ const Dropzone = ({ setFiles: Dispatch>; }) => { const theme = useMantineTheme(); - const config = useConfig() + const config = useConfig(); const { classes } = useStyles(); const openRef = useRef<() => void>(); return (
{ toast.error(e[0].errors[0].message); }}