Remove unused API file and update gitignore
- 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 <noreply@anthropic.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -10,6 +10,9 @@ coverage/
|
|||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
|
|
||||||
|
# Vite
|
||||||
|
.vite/
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.env
|
.env
|
||||||
|
|||||||
@@ -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([])
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user