Skip to content

Commit 2d84f3d

Browse files
author
iitzIrFan
committed
Enhance self-hosting documentation: clarify build output structure and detail generated files for better understanding
1 parent 38c2b61 commit 2d84f3d

File tree

1 file changed

+11
-4
lines changed
  • packages/docs/src/routes/docs/deployments/self-hosting

1 file changed

+11
-4
lines changed

packages/docs/src/routes/docs/deployments/self-hosting/index.mdx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ staticAdapter({
4949

5050
## Building for Production
5151

52-
After adding the appropriate adapter, build your application:
52+
After adding the appropriate adapter, build your application. This will create a `dist/` directory with all the necessary files for deployment:
5353

5454
<PackageManagerTabs>
5555
<span q:slot="pnpm">
@@ -75,9 +75,16 @@ bun run build
7575
</PackageManagerTabs>
7676

7777
The build process will generate:
78-
- `dist/` directory containing client-side assets
79-
- `dist/build/` (JavaScript, CSS chunks)
80-
- `dist/assets/` (images, fonts, other static files)
78+
- `dist/` directory containing:
79+
- **Vite-generated files**:
80+
- `dist/build/` - Compiled JavaScript and CSS chunks (created by Vite)
81+
- `dist/assets/` - Processed assets like images and fonts
82+
- **Non-Vite files (copied as-is)**:
83+
- All files from your `public/` directory (copied to the root of `dist/`)
84+
- Static site generation (SSG) results (if applicable)
85+
- **Manifest files**:
86+
- `manifest.json` - Web app manifest (required for PWA support)
87+
- `q-manifest.json` - Development-only manifest (safe to exclude from production)
8188
- `server/` directory containing server-side code (for Node.js adapters)
8289

8390
## Deployment Methods

0 commit comments

Comments
 (0)