0.1.6 • Published 1 year ago

astro-cloudflare-basic-auth v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago