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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user