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
Some checks failed
Deploy / build-and-deploy (push) Failing after 1s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user