Change preview npm command to use firebase serve; fix headers
This commit is contained in:
		
							parent
							
								
									668a8a2d57
								
							
						
					
					
						commit
						8cebb82bae
					
				| 
						 | 
					@ -21,6 +21,19 @@
 | 
				
			||||||
						"value": "same-origin"
 | 
											"value": "same-origin"
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				]
 | 
									]
 | 
				
			||||||
 | 
								},
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									"source": "**/*",
 | 
				
			||||||
 | 
									"headers": [
 | 
				
			||||||
 | 
										{
 | 
				
			||||||
 | 
											"key": "Cross-Origin-Embedder-Policy",
 | 
				
			||||||
 | 
											"value": "require-corp"
 | 
				
			||||||
 | 
										},
 | 
				
			||||||
 | 
										{
 | 
				
			||||||
 | 
											"key": "Cross-Origin-Opener-Policy",
 | 
				
			||||||
 | 
											"value": "same-origin"
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
									]
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		]
 | 
							]
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,7 +6,7 @@
 | 
				
			||||||
	"scripts": {
 | 
						"scripts": {
 | 
				
			||||||
		"dev": "vite dev",
 | 
							"dev": "vite dev",
 | 
				
			||||||
		"build": "vite build",
 | 
							"build": "vite build",
 | 
				
			||||||
		"preview": "vite preview",
 | 
							"preview": "firebase serve",
 | 
				
			||||||
		"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
 | 
							"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
 | 
				
			||||||
		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
 | 
							"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
 | 
				
			||||||
		"lint": "prettier --plugin-search-dir . --check .",
 | 
							"lint": "prettier --plugin-search-dir . --check .",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue