Skip to content

Element

Security Note

For security reasons, it is recommended that element is not used by the same domain as the Matrix homeserver. For more information see here

Cloudflare Pages

Fork github.com/vector-im/element-web and change the config.json according to your matrix server details and add a file called .nvmrc with the content of 16. This file tells cloudflare pages witch version of NodeJS should be used.

If you want to add a _redirects file to configure http redirects, you have to add the redirects file in the copy file section in the scripts/copy-res.js file.

Now you can create a new page in the Cloudflare Pages webinterface with the following options:

Name Value
Build Command yarn build
Build output directory webapp

CF Pages Build Properties