Set up clean Firebase deploy workflow from git source

- Add @google-cloud/functions-framework and ts-node deps to match deployed
- Add .env.bak ignore patterns to firebase.json
- Fix adminService.ts: inline axios client (was importing non-existent module)
- Clean .env to exclude GCP Secret Manager secrets (prevents deploy overlap error)
- Verified: both frontend and backend build and deploy successfully

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
admin
2026-02-23 13:41:00 -05:00
parent ecd4b13115
commit 14d5c360e5
5 changed files with 613 additions and 12 deletions

View File

@@ -1,4 +1,19 @@
import { apiClient } from './documentService';
import axios from 'axios';
import { authService } from './authService';
import { config } from '../config/env';
const apiClient = axios.create({
baseURL: config.apiBaseUrl,
timeout: 300000,
});
apiClient.interceptors.request.use(async (reqConfig) => {
const token = await authService.getToken();
if (token) {
reqConfig.headers.Authorization = `Bearer ${token}`;
}
return reqConfig;
});
export interface AdminUser {
id: string;