Començant
Introducció
Astro-Shield t’ajudarà a millorar la seguretat dels teus llocs web Astro permetent-te aplicar un conjunt ampli de bones pràctiques de seguretat, com ara:
How to install
Per a instal·lar-lo, executa la següent comanda al teu terminal:
npm install --save-dev @kindspells/astro-shield
pnpm add --save-dev @kindspells/astro-shield
yarn add --dev @kindspells/astro-shield
Activant la integració
Al teu fitxer de configuració astro.config.mjs
, importa Astro-Shield i
afegeix-lo a la llista:
import { defineConfig } from 'astro/config'import { shield } from '@kindspells/astro-shield'
export default defineConfig({ integrations: [ shield({}) ]})