From 68cb8c4bf604093be761f59ac6fbc071ad5122fc Mon Sep 17 00:00:00 2001 From: DaX Date: Wed, 18 Jun 2025 23:49:34 +0200 Subject: [PATCH] Remove unused API file and update gitignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Delete src/pages/api/filaments.ts that was causing build failure - Add .vite/ to gitignore 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitignore | 3 +++ src/pages/api/filaments.ts | 25 ------------------------- 2 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 src/pages/api/filaments.ts diff --git a/.gitignore b/.gitignore index 1d7a081..426f982 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ coverage/ dist/ build/ +# Vite +.vite/ + # Misc .DS_Store .env diff --git a/src/pages/api/filaments.ts b/src/pages/api/filaments.ts deleted file mode 100644 index 416b8c9..0000000 --- a/src/pages/api/filaments.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { Filament } from '../../types/filament'; - -// This file is only used for AWS Amplify deployment -// Local development uses the Vite middleware in vite.config.ts - -export async function handler(event: any) { - // For AWS Amplify - if (event.httpMethod !== 'GET') { - return { - statusCode: 405, - body: JSON.stringify({ error: 'Method not allowed' }) - }; - } - - // In production, this would use the server-side confluence module - // For now, return empty array to avoid errors - return { - statusCode: 200, - headers: { - 'Content-Type': 'application/json', - 'Cache-Control': 'max-age=300' - }, - body: JSON.stringify([]) - }; -} \ No newline at end of file