Empezando
Introducción
Astro-Shield te ayudará a mejorar la seguridad de tu sitio Astro permitiéndote aplicar muchas de las mejores prácticas de seguridad, tales como:
Cómo instalar
Para instalar, ejecuta el siguiente comando en tu terminal:
npm install --save-dev @kindspells/astro-shield
pnpm add --save-dev @kindspells/astro-shield
yarn add --dev @kindspells/astro-shield
Activando la integración
En tu archivo astro.config.mjs
, importa Astro-Shield y agrégalo a la lista
de integraciones:
import { defineConfig } from 'astro/config'import { shield } from '@kindspells/astro-shield'
export default defineConfig({ integrations: [ shield({}) ]})