* ✨ chore: update CI workflow to include testing and multi-arch build (#29)
* ✨ chore: remove unused dependencies from package-lock.json and updated to a better local dev environment (#30)
* ✨ test: add unit tests
* ✨ test: add unit tests for whole project
* ✨ feat: add whatwg-fetch for improved fetch support
* ✨ chore: update Node.js version to 22 in workflow
* ✨ refactor: update types and improve email handling tests
* ✨ refactor: remove unused imports
* ✨ fix: normalize image name to lowercase in workflows
* ✨ fix: ensure Docker image names are consistently lowercase
* ✨ chore: update
* ✨ chore: update base URL to use secret variable
* ✨ chore: update to login to ghcr
* ✨ fix: add missing 'fi' to close if statement in workflow
Updates error logging in the sitemap generation process to provide
more consistent and clear error messages. Changes the error message
from "Error generating sitemap" to "Failed to generate sitemap"
for better clarity and uniformity in error handling.
Add optional `updated_at` field to the Project interface for
tracking last modification. Update base URL to use an
environment variable for better configurability. Improve
error handling during sitemap data fetching by logging
errors and returning static routes as a fallback.
Refactor change frequency and priority logic for clarity
and maintainability.
Change the base URL from localhost to the production URL.
Implement a check for the build environment to use mock data
for generating the sitemap during the build process.
This ensures that sitemap is correctly populated
with project routes even when the API is not available.
Replace hardcoded GHOST_API_KEY with process.env.GHOST_API_KEY in
API routes to enhance security. Update Docker commands in the CI
workflow to pass the GHOST_API_KEY as an environment variable.
Add GHOST_API_KEY to the Next.js configuration for consistent
access across the application.
Refactor project data parsing to ensure type safety by casting
the project data as a string. Enhance the sitemap generation
by fetching data from a dynamic API route, allowing for
more accurate and up-to-date sitemap entries. Remove unused
project markdown files to clean up the project structure.
These changes improve code reliability and maintainability.
Replace "@vercel/analytics" with "@tryghost/content-api" and add
"node-fetch" to dependencies. Remove "@vercel/speed-insights" to
streamline the package. Update robots.txt to dis access to
"/legal-notice" and "/privacy-policy". Change <p> tags to <div> in
the Privacy Policy for better structure. Update the last modified
date in the Legal Notice. Add a new API route for fetching images
with error handling for missing URL parameters.