Skip to content

Commit

Permalink
TRY: WASM build and deploy to Netlify with TOML file present
Browse files Browse the repository at this point in the history
Also update site url used for link to config.
  • Loading branch information
rydmike committed Nov 16, 2024
1 parent 69750af commit e209609
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_playground_netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This workflow:
# - Installs dart and flutter
# - Uses latest flutter stable channel.
# - Uses the latest flutter stable channel.
# Consider setting up a matrix later with beta and dev included too.
# - Enables flutter web
# - Gets package dependencies
Expand Down
3 changes: 1 addition & 2 deletions example/lib/shared/const/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ sealed class App {
static const String author = 'Mike Rydstrom';
static const String license = 'BSD 3-Clause License';
static const String icon = 'assets/images/app_icon.png';
static const String playgroundURL =
'https://rydmike.com/flexcolorscheme/themesplayground-dev/';
static const String playgroundURL = 'https://playground.flexcolorscheme.com/';
static final Uri packageUri = Uri(
scheme: 'https',
host: 'pub.dev',
Expand Down
38 changes: 38 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[[
headers
]]
for = "/*"
[
headers.values
]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"

[[
headers
]]
for = "/*.wasm"
[
headers.values
]
Content-Type = "application/wasm"

[[
headers
]]
for = "/main.dart.js"
[
headers.values
]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"

[[
headers
]]
for = "/flutter.js"
[
headers.values
]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"

1 comment on commit e209609

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.