Skip to content

Commit c557897

Browse files
nchopraharitabh-z01
authored andcommitted
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
1 parent 024f415 commit c557897

File tree

6 files changed

+555
-21
lines changed

6 files changed

+555
-21
lines changed

apps/www/.gitignore

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,51 @@
1-
# deps
2-
/node_modules
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
32

4-
# generated content
5-
.contentlayer
6-
.content-collections
7-
.source
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
87

9-
# test & build
8+
# testing
109
/coverage
10+
11+
# next.js
1112
/.next/
1213
/out/
14+
15+
# production
1316
/build
14-
*.tsbuildinfo
1517

1618
# misc
1719
.DS_Store
1820
*.pem
19-
/.pnp
20-
.pnp.js
21+
22+
# debug
2123
npm-debug.log*
2224
yarn-debug.log*
2325
yarn-error.log*
2426

25-
# others
27+
# local env files
2628
.env*.local
29+
30+
# vercel
2731
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
2835
next-env.d.ts
2936

37+
# vscode
38+
.vscode
39+
40+
# wrangler
41+
.wrangler/
42+
.dev.vars
43+
44+
# generated content
45+
.contentlayer
46+
.content-collections
47+
.source
48+
3049
# sitemap
3150
/public/sitemap.xml
3251

apps/www/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Open http://localhost:3000 with your browser to see the result.
1717

1818
## Content Management
1919

20+
### Docs
21+
22+
Docs are written in MDX in the contents/docs folder.
23+
2024
### Fetching Blog Content
2125

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

apps/www/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"fetch-content": "pnpm exec tsx ./scripts/fetch-content.mts",
1212
"cleanup-content": "pnpm exec tsx ./scripts/cleanup-content.mts",
1313
"refresh-content": "pnpm cleanup-content && pnpm fetch-content",
14-
"postinstall": "fumadocs-mdx"
14+
"postinstall": "fumadocs-mdx",
15+
"deploy": "wrangler deploy",
16+
"dev:wrangler": "wrangler dev"
1517
},
1618
"dependencies": {
1719
"@next/third-parties": "^15.3.2",
@@ -50,6 +52,7 @@
5052
"tailwindcss": "^4.1.5",
5153
"tsx": "^4.19.4",
5254
"tw-animate-css": "^1.2.9",
53-
"typescript": "^5.8.3"
55+
"typescript": "^5.8.3",
56+
"wrangler": "^4.20.3"
5457
}
5558
}

apps/www/wrangler.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "amical-www",
3+
"compatibility_date": "2025-06-20",
4+
"assets": {
5+
"directory": "./out"
6+
}
7+
}

0 commit comments

Comments
 (0)