Export code & self-host
In this article, you'll learn:
- How to export a project
- How to self-host a project
TIP
Code export and self-hosting is available on all paid plans with a yearly commitment.
Export a project
Once the export project feature has been added to your workspace, go to any published project's Settings
> Deployments
tab.
Click on the version of the app for which you'd like to export the code:
What if the download button is disabled? Publish your project at least once to make it clickable.
Once downloaded, you'll find a zip file containing all your project's files (HTML, CSS and JS) ready to host anywhere you want.
Code export example
You can download an example project here with both raw and built files.
Self-host a project
You can self-host WeWeb projects anywhere you like!
Simply download the static files of your app as described above (i.e. the HTML, CSS and JS files of your WeWeb frontend), fire up a server and host the static files of your frontend there.
weweb-server (DEPRECATED)
In the past, to self-host a WeWeb app with private pages, you had to host it using the weweb-server.
On June 26th, 2024, we released an update to change the way we handle private pages. As a result, you no longer need to use the weweb-server to self-host your WeWeb apps, even if those apps use authentication.
WARNING
For now, if you're not yet ready to change how you self-host your existing WeWeb apps, you can still host the WeWeb auth server as described below.
Please note, however, that the weweb-server will be removed in the future. Of course, we will let you know in advance when that happens.
If you're using auth in your app (be it WeWeb auth, Xano, Auth0 or Supabase) and have been using WeWeb for a while, you might already be hosting the WeWeb auth server, which checks for authentication on the backend.
Here's a schema of the previous self-hosting architecture on a WeWeb app:
If you wish to continue self-hosting this way for now, please watch this 5 min video showing you how to self-host with the weweb-server:
The WeWeb auth server is available here