diff --git a/pkgs/sketch_pad/firebase.json b/pkgs/sketch_pad/firebase.json index 2fa5a6498..e5a1696f2 100644 --- a/pkgs/sketch_pad/firebase.json +++ b/pkgs/sketch_pad/firebase.json @@ -7,6 +7,33 @@ "**/.*", "**/node_modules/**" ], + "redirects": [ + { + "source": "/embed-dart.html", + "destination": "/?embed=true", + "type": 301 + }, + { + "source": "/embed-flutter.html", + "destination": "/?embed=true", + "type": 301 + }, + { + "source": "/embed-flutter_showcase.html", + "destination": "/?embed=true", + "type": 301 + }, + { + "source": "/embed-html.html", + "destination": "/?embed=true", + "type": 301 + }, + { + "source": "/embed-inline.html", + "destination": "/?embed=true", + "type": 301 + } + ], "rewrites": [ { "source": "**", @@ -53,12 +80,24 @@ { "source": "**", "headers": [ - { "key": "Cross-Origin-Opener-Policy", "value": "same-origin"}, - { "key": "Cross-Origin-Embedder-Policy", "value": "credentialless"}, - { "key": "X-Content-Type-Options", "value": "nosniff"}, - { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin"} + { + "key": "Cross-Origin-Opener-Policy", + "value": "same-origin" + }, + { + "key": "Cross-Origin-Embedder-Policy", + "value": "credentialless" + }, + { + "key": "X-Content-Type-Options", + "value": "nosniff" + }, + { + "key": "Referrer-Policy", + "value": "strict-origin-when-cross-origin" + } ] } ] } -} +} \ No newline at end of file