This commit is contained in:
@@ -5,31 +5,38 @@ import node from "@astrojs/node";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import icon from "astro-icon";
|
||||
import yeskunallumami from "@yeskunall/astro-umami";
|
||||
import partytown from "@astrojs/partytown";
|
||||
|
||||
// https://astro.build/config
|
||||
const isDev = process.env.NODE_ENV === "development";
|
||||
|
||||
export default defineConfig({
|
||||
output: "server",
|
||||
prefetch: true,
|
||||
build: {
|
||||
inlineStylesheets: "always",
|
||||
inlineStylesheets: "auto",
|
||||
},
|
||||
integrations: [
|
||||
vue(),
|
||||
icon(),
|
||||
partytown(),
|
||||
yeskunallumami({
|
||||
id: "c7e24af4-5f14-4881-9c25-85a97abda9f1",
|
||||
hostUrl: "https://analytics.atri.dad",
|
||||
withPartytown: true,
|
||||
}),
|
||||
],
|
||||
|
||||
security: {
|
||||
csp: {
|
||||
algorithm: "SHA-512",
|
||||
},
|
||||
checkOrigin: true,
|
||||
|
||||
csp: isDev
|
||||
? undefined
|
||||
: {
|
||||
algorithm: "SHA-512",
|
||||
scriptDirective: {
|
||||
resources: ["'self'", "https://analytics.atri.dad"],
|
||||
},
|
||||
directives: [
|
||||
"connect-src 'self' https://analytics.atri.dad",
|
||||
"child-src 'self' blob:",
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
adapter: node({
|
||||
|
||||
Reference in New Issue
Block a user