Skip to content
yjsoonPublic

About

Personal blog on Astro

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

150 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yjsoon.com

Personal blog of YJ Soon, built with Astro.

Tech Stack

Running Locally

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

Production builds omit drafts and posts more than the configured 15-minute publication margin into the future, including article pages, generated OG images, archives, and derived discovery files. Development previews still show scheduled non-draft posts. Publishing a scheduled post requires a new production build. Each build replaces generated Pagefind output so stale search fragments cannot retain posts that were removed, made drafts, or rescheduled into the future.

The development server uses Astro's default Host validation. Docker Compose exposes it only on 127.0.0.1:4321. If a trusted development proxy requires a custom hostname, allow that exact hostname in server.allowedHosts; do not set it to true or allow an entire shared hosting domain.

Run npm run test:security for the publication and Host-header regressions. The publication test builds synthetic posts in a temporary copy and removes it afterward; it needs temporary disk space for dependencies and network access for the existing Google Fonts OG renderer. The Host test starts and stops a local development server on an ephemeral port.

Deployment

Deployed automatically via Cloudflare Pages connected to the GitHub repository. Push to main branch triggers automatic deployment.

When asked to “commit and push,” publish the requested changes all the way to main, wait for Cloudflare Pages to finish, and verify the live URL. A feature-branch push by itself is not a production deployment.

  • Build command: npm run build
  • Output directory: dist
  • Node.js version: Specified in .nvmrc
  • Build cache: Enable Cloudflare Pages build caching so Astro can reuse its incremental build output from node_modules/.astro

For Bing verification, sitemap submission, and automatic IndexNow notifications via Cloudflare Crawler Hints, follow the search discovery setup. The optional PUBLIC_BING_SITE_VERIFICATION build variable adds Bing's verification meta tag; account verification and Crawler Hints need separate setup.

Content Authoring

License

Notes

  • Third‑party trademarks and logos are the property of their respective owners.
  • Some images or embeds may have their own licenses; where applicable, those are indicated in the post.

About

Personal blog on Astro

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages