Remove ecosystem configuration file, add Docker entrypoint script, and update deployment workflow to build and push Docker images. Enhance AdminPage with Docker export functionality and improve post management API to use dynamic posts directory path.
This commit is contained in:
@@ -2,8 +2,9 @@ import { NextResponse } from 'next/server';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import matter from 'gray-matter';
|
||||
import { getPostsDirectory } from '@/lib/postsDirectory';
|
||||
|
||||
const postsDirectory = path.join(process.cwd(), 'posts');
|
||||
const postsDirectory = getPostsDirectory();
|
||||
|
||||
export async function POST(request: Request) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user