8000 GitHub - wasp-lang/wasp-news · GitHub
[go: up one dir, main page]

Skip to content
wasp-langPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

Wasp News

This repo serves as a "backend" for the wasp news command

Server part for the Wasp News feature. The ./public/news.json contents is served on https://news.wasp.sh. The Wasp CLI then fetches this file and displays the news to the user.

Editing the list of news

  1. You edit the list of news by editing the ./public/news.json file.
  2. Create a PR, the CI will validate the JSON against the Zod schema.
  3. Once you merge to main, the changes will be automatically deployed.

CI/CD details

  • On each push, the news JSON file is validated using the Zod schema.
  • The server is deployed using a Railway project token on push to the main branch.

Deployment details

  • The server is deployed to Railway (link to project).
    • Railway builds the Dockerfile, which runs the official Caddy image.
    • The Caddyfile serves ./public/news.json at the root path.
  • We added cache control headers which tell Cloudflare for how long to cache the response.
  • Cloudflare is configured to cache the JSON response using a custom Cache Rule.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0