mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 17:03:00 +10:00
Merge branch 'develop' into perf-fixes
This commit is contained in:
+11
-6
@@ -60,12 +60,7 @@ export default defineNuxtConfig({
|
|||||||
extends: ["./drop-base"],
|
extends: ["./drop-base"],
|
||||||
|
|
||||||
// Module config from here down
|
// Module config from here down
|
||||||
modules: [
|
modules: ["vue3-carousel-nuxt", "nuxt-security", "@nuxt/image", "@nuxt/fonts"],
|
||||||
"vue3-carousel-nuxt",
|
|
||||||
"nuxt-security",
|
|
||||||
"@nuxt/image",
|
|
||||||
"@nuxt/fonts",
|
|
||||||
],
|
|
||||||
|
|
||||||
carousel: {
|
carousel: {
|
||||||
prefix: "Vue",
|
prefix: "Vue",
|
||||||
@@ -74,6 +69,8 @@ export default defineNuxtConfig({
|
|||||||
security: {
|
security: {
|
||||||
headers: {
|
headers: {
|
||||||
contentSecurityPolicy: {
|
contentSecurityPolicy: {
|
||||||
|
"upgrade-insecure-requests": false,
|
||||||
|
|
||||||
"img-src": [
|
"img-src": [
|
||||||
"'self'",
|
"'self'",
|
||||||
"data:",
|
"data:",
|
||||||
@@ -85,4 +82,12 @@ export default defineNuxtConfig({
|
|||||||
strictTransportSecurity: false,
|
strictTransportSecurity: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
routeRules: {
|
||||||
|
"/api/v1/client/object/*": {
|
||||||
|
security: {
|
||||||
|
rateLimiter: false,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export function parsePlatform(platform: string) {
|
|||||||
case "macOS":
|
case "macOS":
|
||||||
case "MacOS":
|
case "MacOS":
|
||||||
case "mac":
|
case "mac":
|
||||||
|
case "macos":
|
||||||
return Platform.macOS;
|
return Platform.macOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user