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