Public Access
1
0

fix: update Dockerfile and docker-compose for improved development setup

This commit is contained in:
2025-08-23 10:13:09 -04:00
parent a002db6285
commit f95d800f6c
6 changed files with 58 additions and 29 deletions

View File

@@ -19,6 +19,9 @@ if (initialData.length === 0) {
app.use(cors()); // Enable Cross-Origin Resource Sharing
app.use(express.json());
// In production, the server also serves the static site from the `_site` directory.
app.use(express.static('_site'));
// --- API Endpoints ---
// GET: Fetch the view count for a specific post slug