|
2 | 2 | "hosting": [ |
3 | 3 | { |
4 | 4 | "target": "admin", |
5 | | - "public": "dist/apps/admin-spa", |
| 5 | + "public": "dist/admin/browser", |
6 | 6 | "ignore": ["**/.*", "**/node_modules/**"], |
7 | | - "rewrites": [{ "source": "**", "destination": "/index.html" }], |
| 7 | + "rewrites": [ |
| 8 | + { "source": "**", "destination": "/index.html" } |
| 9 | + ], |
| 10 | + "redirects": [ |
| 11 | + { |
| 12 | + "source": "/admin", |
| 13 | + "destination": "/", |
| 14 | + "type": 301 |
| 15 | + } |
| 16 | + ], |
8 | 17 | "headers": [ |
9 | 18 | { |
10 | | - "source": "**/*.@(js|css)", |
| 19 | + "source": "/", |
| 20 | + "headers": [ |
| 21 | + { "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate" }, |
| 22 | + { "key": "X-Frame-Options", "value": "DENY" }, |
| 23 | + { "key": "X-Content-Type-Options", "value": "nosniff" }, |
| 24 | + { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }, |
| 25 | + { "key": "Permissions-Policy", "value": "camera=(), microphone=(), geolocation=(), payment=()" }, |
| 26 | + { "key": "Content-Security-Policy", "value": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https:; connect-src 'self' https://*.supabase.co wss://*.supabase.co; frame-ancestors 'none'; base-uri 'self'; form-action 'self';" } |
| 27 | + ] |
| 28 | + }, |
| 29 | + { |
| 30 | + "source": "**/*.@(js|css|woff|woff2|ttf|otf|eot|svg|png|jpg|jpeg|gif|webp|ico)", |
11 | 31 | "headers": [ |
12 | 32 | { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" } |
13 | 33 | ] |
|
16 | 36 | }, |
17 | 37 | { |
18 | 38 | "target": "samples", |
19 | | - "public": "dist/apps/code-samples-mfe", |
| 39 | + "public": "dist/code-samples-mfe", |
20 | 40 | "ignore": ["**/.*", "**/node_modules/**"], |
21 | | - "rewrites": [{ "source": "**", "destination": "/index.html" }], |
| 41 | + "rewrites": [ |
| 42 | + { "source": "**", "destination": "/index.html" } |
| 43 | + ], |
22 | 44 | "headers": [ |
| 45 | + { |
| 46 | + "source": "/", |
| 47 | + "headers": [ |
| 48 | + { "key": "Cache-Control", "value": "no-cache, no-store, must-revalidate" }, |
| 49 | + { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, |
| 50 | + { "key": "X-Content-Type-Options", "value": "nosniff" } |
| 51 | + ] |
| 52 | + }, |
23 | 53 | { |
24 | 54 | "source": "**/remoteEntry.@(js|mjs)", |
25 | 55 | "headers": [ |
26 | | - { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" } |
| 56 | + { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }, |
| 57 | + { "key": "Access-Control-Allow-Origin", "value": "*" } |
27 | 58 | ] |
28 | 59 | }, |
29 | 60 | { |
30 | | - "source": "**/*.@(js|css)", |
| 61 | + "source": "**/*.@(js|css|woff|woff2|ttf|otf|eot|svg|png|jpg|jpeg|gif|webp|ico)", |
31 | 62 | "headers": [ |
32 | 63 | { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" } |
33 | 64 | ] |
|
0 commit comments