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.