Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ CLOUD_API_WAITLIST_KEY=
# is missing, /api/waitlist still succeeds but skips the confirmation email.
RESEND_API_KEY=
RESEND_FROM_EMAIL=no-reply@nan.builders

# Per-key rate limits shown in the docs and served to the Discord bot.
# Not secrets: the deployed values live in wrangler.jsonc under `vars`, and
# src/lib/rateLimits.ts falls back to the same numbers when they are missing.
# Override here only to see a different value in `astro dev`. Changing them
# changes the docs contentHash, so the bot re-syncs on its next manifest poll.
RATE_LIMIT_RPM=60
RATE_LIMIT_PARALLEL=5
3 changes: 2 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { defineConfig } from 'astro/config';

import cloudflare from '@astrojs/cloudflare';
import mdx from '@astrojs/mdx';
import preact from '@astrojs/preact';
import tailwindcss from '@tailwindcss/vite';
import rehypePrettyCode from 'rehype-pretty-code';
Expand All @@ -10,7 +11,7 @@ import rehypePrettyCode from 'rehype-pretty-code';
export default defineConfig({
output: 'server',
adapter: cloudflare(),
integrations: [preact()],
integrations: [preact(), mdx()],

// We do not use Astro sessions in v1 (no auth). The Cloudflare adapter
// otherwise auto-enables a KV-backed session driver and tries to inject a
Expand Down
Loading