amical/apps/www
Naomi Chopra 17fdb72be2 feat(www): migrate www to cloudflare worker (#21)
* feat(www): switch to cloudflare workers

* feat(turbo): add AWS environment variables to global config and build task

* update readme
2025-06-25 01:24:57 +05:30
..
app feat(www): init blog (#20) 2025-06-25 01:24:57 +05:30
components/ui chore: add hidden honeypot fields 2025-06-25 01:24:50 +05:30
content/docs refactor: update title 2025-06-01 23:54:56 +05:30
lib feat(www): init blog (#20) 2025-06-25 01:24:57 +05:30
public feat: update hero with cards carousel (#18) 2025-06-02 23:48:55 +05:30
scripts feat(www): init blog (#20) 2025-06-25 01:24:57 +05:30
.env.example feat(www): init blog (#20) 2025-06-25 01:24:57 +05:30
.gitignore feat(www): migrate www to cloudflare worker (#21) 2025-06-25 01:24:57 +05:30
components.json feat(www): add basic layout including header, footer and meta (#3) 2025-05-09 18:12:08 +05:30
mdx-components.tsx feat(www): init www (#2) 2025-05-09 17:18:08 +05:30
next.config.mjs feat(www): add basic layout including header, footer and meta (#3) 2025-05-09 18:12:08 +05:30
package.json feat(www): migrate www to cloudflare worker (#21) 2025-06-25 01:24:57 +05:30
postcss.config.mjs feat(www): init www (#2) 2025-05-09 17:18:08 +05:30
README.md feat(www): migrate www to cloudflare worker (#21) 2025-06-25 01:24:57 +05:30
source.config.ts feat(www): init blog (#20) 2025-06-25 01:24:57 +05:30
tsconfig.json feat(www): init www (#2) 2025-05-09 17:18:08 +05:30
wrangler.jsonc feat(www): migrate www to cloudflare worker (#21) 2025-06-25 01:24:57 +05:30

www

This is a Next.js application generated with Create Fumadocs.

Run development server:

npm run dev
# or
pnpm dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Content Management

Docs

Docs are written in MDX in the contents/docs folder.

Fetching Blog Content

This project includes a script to fetch blog content and images from an S3-compatible storage (Wasabi):

# Set up environment variables (see .env.example)
pnpm fetch-content

The script will:

  • Fetch MDX files from the blog/ folder in the S3 bucket and save them to content/blogs/
  • Fetch images from the blog-images/ folder in the S3 bucket and save them to public/blog/

Building the Application

The build process includes fetching content from S3:

pnpm build

The build will fail if the content fetch fails. This ensures that the site is always built with the latest content and that any issues with the content fetch process are immediately apparent.

To use this in CI/CD environments, make sure to configure the appropriate AWS credentials as environment variables.