Remove Astro templates, fix sitemap template for Next.js

- Delete: CookieConsent.astro (old Astro component)
- Delete: consent.ts, right-to-be-forgotten.ts (Astro API routes)
- Update: route.ts is now proper Next.js route handler
- Update: sitemap-template.md - replace Astro pages structure with Next.js app/ structure
- Update: payload-nextjs-notes.md - fix MongoDB port reference
- Note: seo-multi-channel auto_publish.py is for Astro sites (kept as-is)
This commit is contained in:
2026-04-17 11:03:10 +07:00
parent 47e0258694
commit ce8483e546
7 changed files with 344 additions and 733 deletions

View File

@@ -160,39 +160,59 @@ src/
│ └── team/
│ ├── member-1.md
│ └── ...
├── layouts/
│ ├── BaseLayout.astro
│ ├── PageLayout.astro
│ ├── BlogLayout.astro
└── AuthLayout.astro
├── app/
│ ├── (frontend)/
│ ├── layout.tsx
│ ├── page.tsx
│ ├── about/
│ │ │ └── page.tsx
│ │ ├── services/
│ │ │ ├── page.tsx
│ │ │ └── [slug]/
│ │ │ └── page.tsx
│ │ ├── blog/
│ │ │ ├── page.tsx
│ │ │ └── [slug]/
│ │ │ └── page.tsx
│ │ ├── contact/
│ │ │ └── page.tsx
│ │ ├── privacy-policy/
│ │ │ └── page.tsx
│ │ ├── terms-of-service/
│ │ │ └── page.tsx
│ │ ├── login/
│ │ │ └── page.tsx
│ │ ├── register/
│ │ │ └── page.tsx
│ │ └── account/
│ │ ├── page.tsx
│ │ ├── profile/
│ │ │ └── page.tsx
│ │ ├── orders/
│ │ │ └── page.tsx
│ │ └── settings/
│ │ └── page.tsx
│ └── (payload)/
│ ├── admin/
│ │ └── [[...segments]]/
│ │ └── page.tsx
│ └── api/
│ └── ...
├── components/
│ ├── Navigation.astro
│ ├── Footer.astro
│ ├── Hero.astro
│ ├── ServiceCard.astro
│ ├── BlogCard.astro
│ ├── ContactForm.astro
│ ├── CookieConsent.astro
│ ├── Navigation.tsx
│ ├── Footer.tsx
│ ├── Hero.tsx
│ ├── ServiceCard.tsx
│ ├── BlogCard.tsx
│ ├── ContactForm.tsx
│ ├── CookieConsent.tsx
│ └── ...
└── pages/
├── index.astro
├── about.astro
├── services/
│ ├── index.astro
│ └── [slug].astro
├── blog/
│ ├── index.astro
│ └── [slug].astro
├── contact.astro
├── privacy-policy.astro
├── terms-of-service.astro
├── login.astro
├── register.astro
└── account/
├── index.astro
├── profile.astro
├── orders.astro
└── settings.astro
└── collections/
├── Posts.ts
├── Pages.ts
├── Media.ts
├── Users.ts
└── ConsentLogs.ts
```
---
@@ -230,7 +250,7 @@ src/
- ติดต่อเรา - ติดต่อ - นโยบายความเป็นส่วนตัว - {EMAIL}
- สมัครสมาชิก - เงื่อนไขการให้บริการ
Copyright (c) {YEAR} {SITE_NAME} | Built with Astro
Copyright (c) {YEAR} {SITE_NAME} | Built with Next.js + Payload CMS
```
---