Skip to content

Commit

Permalink
build changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardhan-ysh committed Oct 8, 2024
1 parent c5ef1fd commit 40aa1d4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build]
base = "portfolio"
command = "bash install_flutter.sh && flutter pub get && flutter build web"
publish = "build/web"

[functions]
directory = "netlify/functions"

8 changes: 8 additions & 0 deletions portfolio/install_flutter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Install Flutter
git clone https://github.com/flutter/flutter.git -b stable --depth 1
export PATH="$PATH:`pwd`/flutter/bin"

# Ensure Flutter dependencies are installed
flutter precache

0 comments on commit 40aa1d4

Please sign in to comment.