mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 12:32:09 +10:00
fix: public assets
This commit is contained in:
@ -24,10 +24,16 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
routeRules: {
|
routeRules: {
|
||||||
"/signin": { prerender: true },
|
"/auth/signin": { prerender: true },
|
||||||
"/signout": { prerender: true },
|
"/signout": { prerender: true },
|
||||||
|
|
||||||
"/api/**": { cors: true },
|
"/api/**": { cors: true },
|
||||||
|
|
||||||
|
"/api/v1/client/object/*": {
|
||||||
|
security: {
|
||||||
|
rateLimiter: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
nitro: {
|
nitro: {
|
||||||
@ -43,24 +49,17 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
compressPublicAssets: true,
|
compressPublicAssets: true,
|
||||||
publicAssets: [
|
|
||||||
{
|
|
||||||
baseURL: "wallpapers",
|
|
||||||
dir: "public/wallpapers",
|
|
||||||
maxAge: 31536000, // 1 year
|
|
||||||
},
|
|
||||||
{
|
|
||||||
baseURL: "fonts",
|
|
||||||
dir: "public/fonts",
|
|
||||||
maxAge: 31536000, // 1 year
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
|
||||||
extends: ["./drop-base"],
|
extends: ["./drop-base"],
|
||||||
|
|
||||||
// Module config from here down
|
// Module config from here down
|
||||||
modules: ["vue3-carousel-nuxt", "nuxt-security", "@nuxt/image", "@nuxt/fonts"],
|
modules: [
|
||||||
|
"vue3-carousel-nuxt",
|
||||||
|
"nuxt-security",
|
||||||
|
"@nuxt/image",
|
||||||
|
"@nuxt/fonts",
|
||||||
|
],
|
||||||
|
|
||||||
carousel: {
|
carousel: {
|
||||||
prefix: "Vue",
|
prefix: "Vue",
|
||||||
@ -82,12 +81,4 @@ export default defineNuxtConfig({
|
|||||||
strictTransportSecurity: false,
|
strictTransportSecurity: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
routeRules: {
|
|
||||||
"/api/v1/client/object/*": {
|
|
||||||
security: {
|
|
||||||
rateLimiter: false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user