📌  相关文章
📜  使用 Surge 部署 Flutter 项目的步骤 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:37.401000             🧑  作者: Mango

代码示例1
# Steps to deploy your flutter project with surge
# pre steps: everytime you deploy you have to build using 
flutter build web

Step 1:
# install surge 
sudo npm i -g surge 

Step 2:
# To deploy flutter web using surge
Method-1
surge 

# Method-2 - In case you don't have access to deploy on default domain
# you can choose your own domain
surge --domain your-own-domain.surge.sh

Step 3:
# when prompt is asked for project:
/project-name -- In here you add /build/web so it should look like:
/project-name/build/web