Add modal for export method selection in AdminPage and update export filename based on hosting type
Some checks failed
Deploy / build-and-deploy (push) Failing after 1s

This commit is contained in:
2025-06-21 17:48:29 +02:00
parent 82f4f5a07d
commit dd31bb735e
3 changed files with 118 additions and 2 deletions

View File

@@ -3,6 +3,9 @@ import { NextResponse } from 'next/server';
import { statSync, createReadStream, existsSync } from 'fs';
import path from 'path';
// This is the route for exporting posts when using the docker production server
// If you try this on the local server, it will fail because the posts directory is not on the local server
export async function GET() {
try {
const dockerDir = '/app/docker'; // update this to your actual path