Zelyanoth commited on
Commit
0e3cb04
Β·
1 Parent(s): a25d1db
HUGGING_FACE_DEPLOYMENT.md CHANGED
@@ -53,14 +53,14 @@ Update your `.env` files for production:
53
 
54
  **frontend/.env.production:**
55
  ```bash
56
- VITE_API_URL=https://zelyanoth-lin.hf.space
57
  VITE_NODE_ENV=production
58
  ```
59
 
60
  **backend/.env:**
61
  ```bash
62
  # LinkedIn OAuth configuration
63
- REDIRECT_URL=https://zelyanoth-lin.hf.space/auth/callback
64
 
65
  # Other configurations...
66
  ```
@@ -179,7 +179,7 @@ The scheduler will work, but you should be aware that:
179
  ## Access Your Application
180
 
181
  After deployment, your app will be available at:
182
- `https://zelyanoth-lin.hf.space`
183
 
184
  ## Troubleshooting
185
 
 
53
 
54
  **frontend/.env.production:**
55
  ```bash
56
+ VITE_API_URL=https://zelyanoth-lin-cbfcff2.hf.space
57
  VITE_NODE_ENV=production
58
  ```
59
 
60
  **backend/.env:**
61
  ```bash
62
  # LinkedIn OAuth configuration
63
+ REDIRECT_URL=https://zelyanoth-lin-cbfcff2.hf.space/auth/callback
64
 
65
  # Other configurations...
66
  ```
 
179
  ## Access Your Application
180
 
181
  After deployment, your app will be available at:
182
+ `https://zelyanoth-lin-cbfcff2.hf.space`
183
 
184
  ## Troubleshooting
185
 
backend/.env.example CHANGED
@@ -5,7 +5,7 @@ SUPABASE_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZ
5
  # LinkedIn OAuth configuration
6
  CLIENT_ID="786uz2fclmtgnd"
7
  CLIENT_SECRET="WPL_AP1.L2w25M5xMwPb6vR3.75REhw=="
8
- REDIRECT_URL=https://zelyanoth-lin.hf.space/auth/callback
9
 
10
  # Hugging Face configuration
11
 
 
5
  # LinkedIn OAuth configuration
6
  CLIENT_ID="786uz2fclmtgnd"
7
  CLIENT_SECRET="WPL_AP1.L2w25M5xMwPb6vR3.75REhw=="
8
+ REDIRECT_URL=https://zelyanoth-lin-cbfcff2.hf.space/auth/callback
9
 
10
  # Hugging Face configuration
11
 
backend/app.py CHANGED
@@ -67,7 +67,7 @@ def create_app():
67
  "http://127.0.0.1:3000",
68
  "http://127.0.0.1:5000",
69
  "http://192.168.1.4:3000",
70
- "https://zelyanoth-lin.hf.space"
71
  ],
72
  "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
73
  "allow_headers": ["Content-Type", "Authorization"],
 
67
  "http://127.0.0.1:3000",
68
  "http://127.0.0.1:5000",
69
  "http://192.168.1.4:3000",
70
+ "https://zelyanoth-lin-cbfcff2.hf.space"
71
  ],
72
  "methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
73
  "allow_headers": ["Content-Type", "Authorization"],
backend/tests/test_frontend_integration.py CHANGED
@@ -9,7 +9,7 @@ def test_generate_post_with_unicode():
9
  client = app.test_client()
10
 
11
  # Mock the content service to return content with emojis
12
- with patch('services.content_service.ContentService.generate_post_content') as mock_generate:
13
  # Test content with emojis
14
  test_content = "πŸš€ Check out this amazing new feature! πŸŽ‰ #innovation"
15
  mock_generate.return_value = test_content
 
9
  client = app.test_client()
10
 
11
  # Mock the content service to return content with emojis
12
+ with patch('backend.services.content_service.ContentService.generate_post_content') as mock_generate:
13
  # Test content with emojis
14
  test_content = "πŸš€ Check out this amazing new feature! πŸŽ‰ #innovation"
15
  mock_generate.return_value = test_content
frontend/.env.production CHANGED
@@ -1,5 +1,5 @@
1
  # API Configuration
2
- VITE_API_URL=https://zelyanoth-lin.hf.space
3
 
4
  # Environment
5
  VITE_NODE_ENV=production
 
1
  # API Configuration
2
+ VITE_API_URL=https://zelyanoth-lin-cbfcff2.hf.space
3
 
4
  # Environment
5
  VITE_NODE_ENV=production