Skip to content

Commit ba71800

Browse files
committed
TRY: WASM Build and deploy on Netlify again
1 parent e209609 commit ba71800

File tree

2 files changed

+6
-40
lines changed

2 files changed

+6
-40
lines changed

.github/workflows/deploy_playground_netlify.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ jobs:
4242
run: flutter pub outdated
4343

4444
# Themes playground - Build and deploy to Netlify
45-
- name: "EXAMPLE-5 START BUILD - Flutter clean before build"
45+
- name: "Themes playground START BUILD - Flutter clean before build"
4646
run: flutter clean && cd example && flutter clean
47-
- name: "EXAMPLE-5 WEB release build"
48-
run: cd example && flutter build web --wasm --release -t lib/example5_themes_playground/main.dart
47+
- name: "Themes playground WEB WASM-GC release build"
48+
run: cd example && flutter build web --wasm --release --base-href "/themesplayground/" -t lib/example5_themes_playground/main.dart
4949
- name: Deploy to Netlify
5050
uses: nwtgck/[email protected]
5151
with:
5252
publish-dir: './example/build/web'
5353
production-branch: main
5454
github-token: ${{ secrets.GITHUB_TOKEN }}
55-
deploy-message: "Deploy from GitHub Actions"
55+
deploy-message: "Deploy to Netlify from GitHub Actions"
5656
enable-pull-request-comment: true
5757
enable-commit-comment: true
5858
overwrites-pull-request-comment: true

netlify.toml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,4 @@
1-
[[
2-
headers
3-
]]
4-
for = "/*"
5-
[
6-
headers.values
7-
]
8-
Cross-Origin-Embedder-Policy = "require-corp"
9-
Cross-Origin-Opener-Policy = "same-origin"
10-
11-
[[
12-
headers
13-
]]
1+
[[headers]]
142
for = "/*.wasm"
15-
[
16-
headers.values
17-
]
3+
[headers.values]
184
Content-Type = "application/wasm"
19-
20-
[[
21-
headers
22-
]]
23-
for = "/main.dart.js"
24-
[
25-
headers.values
26-
]
27-
Cross-Origin-Embedder-Policy = "require-corp"
28-
Cross-Origin-Opener-Policy = "same-origin"
29-
30-
[[
31-
headers
32-
]]
33-
for = "/flutter.js"
34-
[
35-
headers.values
36-
]
37-
Cross-Origin-Embedder-Policy = "require-corp"
38-
Cross-Origin-Opener-Policy = "same-origin"

0 commit comments

Comments
 (0)