Skip to content

Getting Started

Introduction

Astro-Shield will help you enhance the security of your Astro site by allowing you to apply many security best practices, such as:

How to install

To install, run the following command in your terminal:

Terminal window
npm install --save-dev @kindspells/astro-shield

Enabling the integration

In your astro.config.mjs file, import the integration and add it to the integrations array:

import { defineConfig } from 'astro/config'
import { shield } from '@kindspells/astro-shield'
export default defineConfig({
integrations: [
shield({})
]
})