Skip to content

feat(www): migrate www to cloudflare worker #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 20, 2025
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
41 changes: 30 additions & 11 deletions apps/www/.gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,51 @@
# deps
/node_modules
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# generated content
.contentlayer
.content-collections
.source
# dependencies
/node_modules
/.pnp
.pnp.js

# test & build
# testing
/coverage

# next.js
/.next/
/out/

# production
/build
*.tsbuildinfo

# misc
.DS_Store
*.pem
/.pnp
.pnp.js

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# others
# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# vscode
.vscode

# wrangler
.wrangler/
.dev.vars

# generated content
.contentlayer
.content-collections
.source

# sitemap
/public/sitemap.xml

Expand Down
4 changes: 4 additions & 0 deletions apps/www/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ 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):
Expand Down
7 changes: 5 additions & 2 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"fetch-content": "pnpm exec tsx ./scripts/fetch-content.mts",
"cleanup-content": "pnpm exec tsx ./scripts/cleanup-content.mts",
"refresh-content": "pnpm cleanup-content && pnpm fetch-content",
"postinstall": "fumadocs-mdx"
"postinstall": "fumadocs-mdx",
"deploy": "wrangler deploy",
"dev:wrangler": "wrangler dev"
},
"dependencies": {
"@next/third-parties": "^15.3.2",
Expand Down Expand Up @@ -50,6 +52,7 @@
"tailwindcss": "^4.1.5",
"tsx": "^4.19.4",
"tw-animate-css": "^1.2.9",
"typescript": "^5.8.3"
"typescript": "^5.8.3",
"wrangler": "^4.20.3"
}
}
7 changes: 7 additions & 0 deletions apps/www/wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "amical-www",
"compatibility_date": "2025-06-20",
"assets": {
"directory": "./out"
}
}
Loading