Socket
Book a DemoInstallSign in
Socket

astro-cloudflare-basic-auth

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-cloudflare-basic-auth

Astro integration that adds basic authentication to your cloudflare pages deployment.

0.1.6
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

cloudflare-basic-auth

This Astro integration generates code that when deployed to a Cloudflare Pages app will require basic authentication.

Good for quick protection of staging sites.

Usage

Add the integration to your package.

pnpm add -D cloudflare-basic-auth

Configure the integration in your astro.config.mjs.

import basicAuth from 'astro-cloudflare-basic-auth';

export default defineConfig({
    integrations: [
        basicAuth(),
        /* ... */
    ]
})

Before you deploy to your CloudFlare pages app, set the password by adding a CFP_PASSWORD environment variable. The value that you set there will be the password to your application.

Keywords

astro-integration

FAQs

Package last updated on 02 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.