create-next-mdx-blog-app 2.2.8 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ This project was developed with the help of **Claude** (Anthropic) and **Cursor*
|
|
|
24
24
|
- [Article Manager CLI](#%EF%B8%8F-article-manager-cli)
|
|
25
25
|
- [Project Scripts](#-project-scripts)
|
|
26
26
|
- [AWS S3 Image Storage](#%EF%B8%8F-aws-s3-image-storage)
|
|
27
|
-
- [SEO: Sitemap &
|
|
27
|
+
- [SEO: Sitemap, Robots & Structured Data](#%EF%B8%8F-seo-sitemap-robots--structured-data)
|
|
28
28
|
- [Mobile Responsiveness](#-mobile-responsiveness)
|
|
29
29
|
- [Analytics](#-analytics)
|
|
30
30
|
- [Docker](#-docker)
|
|
@@ -43,7 +43,7 @@ Scaffold the blog into an empty directory:
|
|
|
43
43
|
npx create-next-mdx-blog-app .
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
The installer ([`create-next-mdx-blog-app`](https://www.npmjs.com/package/create-next-mdx-blog-app/), v2.2.
|
|
46
|
+
The installer ([`create-next-mdx-blog-app`](https://www.npmjs.com/package/create-next-mdx-blog-app/), v2.2.9, MIT) clones the app, installs dependencies, and prints the environment setup steps.
|
|
47
47
|
|
|
48
48
|
### Option 2 — Manual clone
|
|
49
49
|
|
|
@@ -105,7 +105,7 @@ RESEND_AUDIENCE_ID=
|
|
|
105
105
|
|
|
106
106
|
| Variable | Used by | Default |
|
|
107
107
|
|---|---|---|
|
|
108
|
-
| `NEXT_PUBLIC_SITE_URL` | Sitemap, robots.txt, summarizer origin allow-list | `http://localhost:3000` |
|
|
108
|
+
| `NEXT_PUBLIC_SITE_URL` | Sitemap, robots.txt, RSS feed, JSON-LD structured data, summarizer origin allow-list | `http://localhost:3000` |
|
|
109
109
|
| `GITHUB_TOKEN` | `<GitHubGist>` GitHub API auth — raises rate limit from 60 to 5,000 req/hr | unauthenticated |
|
|
110
110
|
| `GITHUB_USERNAME` | mdxgists.net URL construction | `CodingAbdullah` |
|
|
111
111
|
| `GIST_BASE_URL` | mdxgists.net link base URL | `https://mdxgists.net` |
|
|
@@ -319,7 +319,7 @@ Supabase is integrated **directly in Server Components** — no custom backend A
|
|
|
319
319
|
|
|
320
320
|
- **CRUD functions** — `src/utils/functions/crud/` (create, read, update, delete articles)
|
|
321
321
|
- **RPC functions** — `src/utils/functions/rpc/` (e.g. `incrementViewCount`)
|
|
322
|
-
- **SQL scripts** — `scripts/sql/DDL/` (create/alter/drop tables, view-counts table, RPC
|
|
322
|
+
- **SQL scripts** — `scripts/sql/DDL/` (create/alter/drop tables, view-counts table, RPC functions, `updated_at` trigger) and `scripts/sql/DML/` (insert/fetch/update/delete article statements)
|
|
323
323
|
|
|
324
324
|
**Ensure your Supabase Row Level Security policies allow the CRUD actions you need** — these are configured in the Supabase console.
|
|
325
325
|
|
|
@@ -366,12 +366,17 @@ The `/scripts` folder contains tooling for project and database setup:
|
|
|
366
366
|
|
|
367
367
|
Images referenced in `.mdx` files (via the `MDXImage` component) are served from AWS S3. The allowed external image domain is configured in `next.config.ts` — point it at your own bucket, or swap in another storage service entirely.
|
|
368
368
|
|
|
369
|
-
## 🗺️ SEO: Sitemap &
|
|
369
|
+
## 🗺️ SEO: Sitemap, Robots & Structured Data
|
|
370
370
|
|
|
371
|
-
- **`sitemap.xml`** — auto-generated at build time by `src/app/sitemap.ts`, covering all static routes and every dynamic article slug fetched from Supabase
|
|
371
|
+
- **`sitemap.xml`** — auto-generated at build time by `src/app/sitemap.ts`, covering all static routes and every dynamic article slug fetched from Supabase. Each article's `lastModified` comes from its `updated_at` column (falling back to its publish date)
|
|
372
372
|
- **`robots.txt`** — served from `src/app/robots.ts`, permitting all crawlers and pointing them at the sitemap
|
|
373
|
+
- **JSON-LD structured data** — every article page embeds a schema.org [`BlogPosting`](https://schema.org/BlogPosting) document (headline, description, cover image, publish/modified dates, author, publisher, tags) for Google rich results. It is rendered server-side by `src/components/ArticleJsonLd.tsx` and built by `src/utils/functions/seo/buildArticleJsonLd.ts`. Validate a deployed page with Google's [Rich Results Test](https://search.google.com/test/rich-results)
|
|
373
374
|
|
|
374
|
-
|
|
375
|
+
All of these use `NEXT_PUBLIC_SITE_URL` as the base URL, so set it to your production origin before deploying.
|
|
376
|
+
|
|
377
|
+
### One-time setup
|
|
378
|
+
|
|
379
|
+
Run **`scripts/sql/DDL/createUpdatedAtTrigger.sql`** once in the Supabase SQL editor. It adds an `updated_at` column to the `Article` table, backfills it from each row's publish date, and keeps it current on every update. Until it is deployed, `dateModified` falls back to the publish date.
|
|
375
380
|
|
|
376
381
|
## 📱 Mobile Responsiveness
|
|
377
382
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-next-mdx-blog-app",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"description": "A production-ready technical blog starter kit built with Next.js, MDX, Supabase, and TypeScript.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Abdullah Muhammad",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bin/"
|
|
11
11
|
],
|
|
12
12
|
"bin": {
|
|
13
|
-
"create-next-mdx-blog-app": "
|
|
13
|
+
"create-next-mdx-blog-app": "bin/create.js"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=18.17.0"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dev": "next dev",
|
|
38
38
|
"build": "next build",
|
|
39
39
|
"start": "next start",
|
|
40
|
-
"lint": "
|
|
40
|
+
"lint": "eslint .",
|
|
41
41
|
"doctor": "npx react-doctor@latest"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|