Let's start with a bit of history. Before this change, 21RISK was deployed like many other web applications:
The historical reason for this was straightforward. The web application was written in Angular, an application framework, and the marketing web page was built with WordPress. Angular felt like a good choice for building an enterprise web application, and WordPress was the default choice for building marketing web pages.
It was challenging with Angular to build a performant application. We were missing features like server-side-rendering and static pre-rendering. To overcome this, we decided to adopt Sveltekit. This change was amazing, it was now easy to build an extremely performant website. And best of all, using the same tools for the web application and website, made it easy to knowledge share.
However, the web application was still a project isolated from the website. This raised a couple of frustrating things:
To make everything "just work", we use Cloudflare page redirects to make sure users that have bookmarked app.21risk.com are correctly redirected to 21risk.com.
In the coming time we are thrilled about the possibilities to empower the marketing website even more:
With this change we are also looking into partnering with a new cloud provider, to ensure the best possible performance for both website and application users. Stay tuned for more updates on this part later 😎