Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

surge flutter web

# 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:
<path to project>/project-name -- In here you add /build/web so it should look like:
<path to project>/project-name/build/web
 
PREVIOUS NEXT
Tagged: #surge #flutter #web
ADD COMMENT
Topic
Name
6+2 =