Skip to content

Commit e209609

Browse files
committed
TRY: WASM build and deploy to Netlify with TOML file present
Also update site url used for link to config.
1 parent 69750af commit e209609

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/deploy_playground_netlify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# This workflow:
44
# - Installs dart and flutter
5-
# - Uses latest flutter stable channel.
5+
# - Uses the latest flutter stable channel.
66
# Consider setting up a matrix later with beta and dev included too.
77
# - Enables flutter web
88
# - Gets package dependencies

example/lib/shared/const/app.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ sealed class App {
5757
static const String author = 'Mike Rydstrom';
5858
static const String license = 'BSD 3-Clause License';
5959
static const String icon = 'assets/images/app_icon.png';
60-
static const String playgroundURL =
61-
'https://rydmike.com/flexcolorscheme/themesplayground-dev/';
60+
static const String playgroundURL = 'https://playground.flexcolorscheme.com/';
6261
static final Uri packageUri = Uri(
6362
scheme: 'https',
6463
host: 'pub.dev',

netlify.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
]]
14+
for = "/*.wasm"
15+
[
16+
headers.values
17+
]
18+
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)