Skip to content

Commit 2a2a57c

Browse files
committed
docs(web-dashboard): update deployment guide
- Remove specific hosting provider instructions - Redirect readers to official Flutter deployment guide - Simplify content and focus on pre-deployment preparations
1 parent cec0cf4 commit 2a2a57c

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

src/content/docs/web-dashboard/deployment.mdx

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ description: A guide to building and deploying the Flutter web dashboard to a pr
55

66
import { Steps, Aside } from '@astrojs/starlight/components';
77

8-
This guide covers the essential steps for deploying the Flutter News App Web Dashboard to a production hosting service.
8+
This guide outlines the process for deploying the Flutter News App Web Dashboard.
99

1010
<Aside>
11-
The world of web hosting evolves quickly. To ensure you have the most reliable and up-to-date instructions, this guide focuses on the core deployment process and links to the official documentation for several popular hosting providers. This approach empowers you to use the best practices recommended directly by the services themselves.
11+
To ensure you have the most reliable and up-to-date instructions, this guide will direct you to the official Flutter documentation. The process of building and deploying a Flutter web app is well-documented by the Flutter team, and their guide is the definitive resource for this task.
1212
</Aside>
1313

1414
<Steps>
@@ -29,27 +29,13 @@ The world of web hosting evolves quickly. To ensure you have the most reliable a
2929
Ensure that the `baseUrl` for the `production` environment in `lib/app/config/app_config.dart` points to the correct URL of your deployed [API Server](/docs/api-server/deployment/).
3030
</Aside>
3131

32-
2. **Build the Web Application**
32+
2. **Follow the Official Flutter Deployment Guide**
3333

34-
Next, create a production-optimized build of the Flutter web app. This compiles your Dart code to JavaScript and bundles all necessary assets into a single directory for web deployment.
34+
The Flutter team provides a comprehensive guide that covers everything you need to know about building and deploying a Flutter web application. This includes compiling your Dart code to JavaScript and deploying the output to various hosting services.
3535

36-
Run the following command from the root of your web dashboard project:
37-
```bash
38-
flutter build web
39-
```
40-
This command will generate a `build/web` directory containing all the static files required to run your web application.
41-
42-
3. **Deploy to a Hosting Provider**
43-
44-
The contents of the `build/web` directory can be deployed to any hosting service that supports static websites. We recommend choosing a provider with a strong global CDN to ensure fast load times for your users.
45-
46-
Follow the official deployment guide for your chosen provider, using `build/web` as your publish directory:
47-
48-
- **Firebase Hosting:** [Official Deployment Guide](https://firebase.google.com/docs/hosting/quickstart)
49-
- **Vercel:** [Official Deployment Guide for Flutter](https://vercel.com/guides/deploying-flutter-to-vercel)
50-
- **Netlify:** [Official Deployment Guide](https://docs.netlify.com/site-deploys/create-deploys/)
51-
- **GitHub Pages:** [Official Deployment Guide](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)
36+
Please follow the official guide here:
37+
**[Build and release a web app](https://flutter.dev/docs/deployment/web)**
5238

53-
Once the deployment is complete, your web dashboard will be live at the URL provided by your hosting service.
39+
This guide will walk you through the `flutter build web` command and provide best practices for hosting the contents of the generated `build/web` directory.
5440

5541
</Steps>

0 commit comments

Comments
 (0)