Skip to content

Commit ab0133c

Browse files
committed
Update Base Href
- Pass Base Href in build arguments.
1 parent 2cdac8c commit ab0133c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
mkdir -p clone_dir/flutterwebsites/minimal
2323
- name: Build
2424
run: |
25-
flutter build web --release
25+
flutter build web --release --base-href /flutterwebsites/minimal/
2626
mv build/web/* clone_dir/flutterwebsites/minimal
2727
- name: Get current date
2828
id: date

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<base href="/flutterwebsites/minimal/">
4+
<base href="$FLUTTER_BASE_HREF">
55

66
<meta charset="UTF-8">
77
<meta content="IE=Edge" http-equiv="X-UA-Compatible">

0 commit comments

Comments
 (0)