diff --git a/website/dist/assets/environmentVariables.png b/website/dist/assets/environmentVariables.png new file mode 100644 index 0000000..2eb2dad Binary files /dev/null and b/website/dist/assets/environmentVariables.png differ diff --git a/website/src/setup/installation.md b/website/src/setup/installation.md index 6daef81..67beced 100644 --- a/website/src/setup/installation.md +++ b/website/src/setup/installation.md @@ -90,7 +90,14 @@ On most webhosting accounts, there's a file created in the directory of libreeve The MySQL database you are using is not supported by libreevent or is incorrectly configured. Please ensure that InnoDB is enabled. If you cannot enable it yourself, please contact the DB hosting provider. ### ERR_ENCODING_NOT_SUPPORTED -If this error occurs, most likely, the Node.js build of your hosting provider is set to small-icu mode, meaning some localizations are missing, one of which is ascii, which is required by the pdf generator that libreevent uses. To resolve this, please contact the support team of your web hosting company and ask them to enable full-icu for you. +If this error occurs, most likely, the Node.js build of your hosting provider is set to small-icu mode, meaning some localizations are missing, one of which is ascii, which is required by the pdf generator that libreevent uses. To resolve this, you will need to download a special package.json file and add two (more) environment variables: +- For the package.json file, download it from [here](https://libreevent.janishutz.com/downloads/full-icu/package.json) TODO: Add download! +- For the environment variables, add the following: +``` +NODE_ICU_DATA=./node_modules/full-icu +FULL_ICU_PREFER_NPM=true +``` +![EnvVars](/assets/environmentVariables.png) ### Any other error Please click [here](https://github.com/simplePCBuilding/libreevent/issues/new) to head to GitHub and open a new issue. You will need to have a GitHub Account to open an issue. If you don't have a GitHub account, you may also contact me using my [Bug reporting tool](https://api.janishutz.com/contact/report?origin=libreevent?error=unkown?lang=en). \ No newline at end of file