-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
17 lines (16 loc) · 896 Bytes
/
vite.config.js
File metadata and controls
17 lines (16 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
assetsInlineLimit: 0,
},
server: {
port: 5423,
headers: {
"Content-Security-Policy":
"default-src 'none'; connect-src 'self' http://127.0.0.1:9099 http://127.0.0.1:8080 http://localhost:5001 https://securetoken.googleapis.com https://firestore.googleapis.com https://europe-west1-mapquiz-app.cloudfunctions.net https://tiles.openfreemap.org; script-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://tiles.openfreemap.org https://*.tile.osm.org https://joesch.moe; style-src 'self' 'unsafe-inline'; font-src 'self'; manifest-src 'self'; worker-src 'self' blob:; object-src 'none'; child-src blob:; frame-ancestors 'none'; form-action 'none'; base-uri 'none';",
},
},
});