2025-03-08 19:37:56 +00:00
|
|
|
import { json, type ActionFunction } from '@remix-run/cloudflare';
|
2025-02-02 15:17:33 +00:00
|
|
|
|
2025-02-02 00:42:30 +00:00
|
|
|
export const action: ActionFunction = async ({ request }) => {
|
|
|
|
if (request.method !== 'POST') {
|
|
|
|
return json({ error: 'Method not allowed' }, { status: 405 });
|
|
|
|
}
|
|
|
|
|
2025-03-08 19:37:56 +00:00
|
|
|
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 },
|
|
|
|
);
|
2025-02-02 00:42:30 +00:00
|
|
|
};
|