bolt.diy/app/routes/api.update.ts

22 lines
595 B
TypeScript
Raw Normal View History

import { json, type ActionFunction } from '@remix-run/cloudflare';
2025-02-02 15:17:33 +00:00
export const action: ActionFunction = async ({ request }) => {
if (request.method !== 'POST') {
return json({ error: 'Method not allowed' }, { status: 405 });
}
return json(
{
error: 'Updates must be performed manually in a server environment',
instructions: [
'1. Navigate to the project directory',
'2. Run: git fetch upstream',
'3. Run: git pull upstream main',
'4. Run: pnpm install',
'5. Run: pnpm run build',
],
},
{ status: 400 },
);
};