Appearance
Export code & self-host
In this article, you'll learn:
- How to export a project
- How to self-host a project
Export a project
Before you can export your code, you must publish your app at least once. Follow the steps shown in the image below:

- Click the "Deploy" button in the top right.
- Select the "Export" tab.
- Click "Generate code export".
After publishing, the export options will become available. You can then download a zip file containing all your project's files 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!
If your project only uses the interface, you can export the built interface files and host them on your own infrastructure.
As examples, we've documented how you might:
- Self-host a WeWeb project on Cloudflare for interface-only hosting
- Self-host a fullstack WeWeb project on AWS
What runs on your own infrastructure
When you self-host a fullstack project, the exported backend runs on your server and connects to your own PostgreSQL database. It does not need WeWeb's servers to run:
- WeWeb Auth runs inside your backend. Users, sessions and roles are stored in your own database.
- Integrations like Stripe, Notion, Airtable or Google Sheets connect directly to each service from your backend.
- File uploads go to your own storage, like an AWS
S3bucket.
API keys and secrets are not included in the export. You add them yourself in the exported .env file, including the keys of each integration and a secret for authentication.
A few things that WeWeb provides on its hosting need your own setup once you self-host:
- AI features — Add your own API key for each AI provider you use. WeWeb AI credits can't be used in a self-hosted app.
- Emails sent by WeWeb — WeWeb's built-in email sending is not available. Send emails with an email integration like Resend or SendGrid and your own API key.
- Your data and files — The export contains the structure of your tables, not the records in them. Files already uploaded to WeWeb are not moved either. Move your data and files to your own database and storage separately.
Frequently Asked Questions
I have a Free hosting plan, will the self-host option be limited to 50,000 monthly app visits and 200 GB of bandwidth?
No. The exported code will run on your infrastructure, so none of the hosting plan limits apply.
How many times can I export my code?
You can export your code as many times as you want, for as long as you have an active seat plan subscription.
Where can I self-host the exported application from WeWeb?
You can host the app on cloud hosting platforms like Amazon Web Services, Google Cloud Platform, Microsoft Azure, Cloudflare or Digital Ocean, as well as on managed hosting services platforms like Netlify.
Or you can self-host on your on-premise infrastructure—basically anything that can run a web server; an internet connection is not mandatory.
Will my backend still work after I export the code and self-host the app?
Yes, as long as the backend your project depends on is still hosted and reachable.
If you are only self-hosting the interface, the exported interface will continue to call your backend or external services just as it did before.
What files are included in the code export?
What is included depends on the export type and the parts of your project you are hosting.
Built interface files:
- These are the compiled files for the interface.
- They are ready to deploy to a web server or hosting platform.
- This is what you usually use for interface-only hosting.
Raw project files:
- These are static HTML/CSS/JS files.
- They represent the basic structure and content of your project.
- Useful if you want to run your build process or perform code analysis.
- Can be modified or integrated into custom development workflows.
- They do not contain Vue.js components or framework-specific code.
Backend files:
- If your project uses backend services, your export flow may also include backend files that need to be hosted separately from the interface.
Raw files need a build step. Built interface files are ready to host.
Can I make edits to my exported code outside WeWeb?
While it's technically possible to edit the exported code from WeWeb, it's not easy or recommended.
The code is structured by a machine for a machine and is not organized like a human developer would organize it.
Editing these files safely requires in-depth knowledge of WeWeb's internal logic. This approach isn't feasible if you're planning to build a project in WeWeb and then maintain it independently outside the platform.
Can I host my application in an air-gapped environment?
Yes, WeWeb applications can be hosted in networks with no internet access. You can export the code and host it in your network alongside your own backend.
Can I still use WeWeb's CDN when self-hosting?
No. Files uploaded to WeWeb's CDN before self-hosting will not be preserved when you self-host.
For self-hosting scenarios, it's best to set up file uploads to your own storage solution from the beginning to ensure continuity when you transition to self-hosting.
Files that are part of your app's structure (like images embedded in the design) will be included in the export.
Can I export my WeWeb project if it's not published?
No, you need to publish your project at least once to enable the export feature.
Can I export only part of my WeWeb project?
No, the export includes the entire project.
Can I import my exported code back into WeWeb?
No, this feature is currently not available.
Does WeWeb provide server requirements for self-hosting?
With WeWeb, you can self-host your project in any standard web server.
How does WeWeb handle custom domains for self-hosted projects?
The setup of a custom domain is handled through your hosting provider, not WeWeb.
Can I host my application on a root domain and do white label hosting?
Yes, all of that is possible when you self-host.
Can I still use WeWeb's UI components library in a self-hosted project?
Yes, WeWeb's UI components will be included in the exported files.
What's WeWeb's approach to version control for exported projects?
WeWeb itself doesn't provide version control for exported projects. However, once you have exported your project, you can implement version control yourself using systems like Git.
Does WeWeb provide tools for monitoring self-hosted projects?
No. You'll need to use third-party solutions for that.
Is it possible to add multiple subdomains to a self-hosted project?
Yes. You can deploy to multiple domains if you self-host.

