mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-03-09 21:50:36 +00:00
* Fix: error building my application #1414 * fix for vite * Update vite.config.ts * Update root.tsx * fix the root.tsx and the debugtab * lm studio fix and fix for the api key * Update api.enhancer for prompt enhancement * bugfixes * Revert api.enhancer.ts back to original code * Update api.enhancer.ts * Update api.git-proxy.$.ts * Update api.git-proxy.$.ts * Update api.enhancer.ts
22 lines
595 B
TypeScript
22 lines
595 B
TypeScript
import { json, type ActionFunction } from '@remix-run/cloudflare';
|
|
|
|
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 },
|
|
);
|
|
};
|