Skip to content

Commit a4203f0

Browse files
author
martinmeerAT
committed
Fix navigation between marketing and main app
- Set production URLs in both app configs - Marketing site: root (/) - Main app: /app/ subdirectory - Configure builds to use NODE_ENV=production - This fixes 'Войти' and 'Начать бесплатно' buttons not working
1 parent e66b1fc commit a4203f0

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/deploy-github-pages.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141

4242
- name: Build Marketing Site
4343
working-directory: apps/marketing-site
44-
run: npm run build
44+
run: NODE_ENV=production npm run build
45+
env:
46+
NODE_ENV: production
4547

4648
# Build Main App
4749
- name: Install Main App dependencies
@@ -50,7 +52,9 @@ jobs:
5052

5153
- name: Build Main App
5254
working-directory: apps/main-app
53-
run: npm run build
55+
run: NODE_ENV=production npm run build
56+
env:
57+
NODE_ENV: production
5458

5559
# Prepare deployment directory
5660
- name: Prepare GitHub Pages content

apps/main-app/src/config/app.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export const APP_CONFIG = {
1111
API_URL: ''
1212
},
1313
production: {
14-
MARKETING_URL: '',
15-
MAIN_APP_URL: '',
16-
API_URL: ''
14+
MARKETING_URL: 'https://martinmeer.github.io/my-car-tech-tracker-front',
15+
MAIN_APP_URL: 'https://martinmeer.github.io/my-car-tech-tracker-front/app',
16+
API_URL: 'https://your-api-domain.com/api' // TODO: Update with actual API URL
1717
}
1818
},
1919

apps/marketing-site/src/config/app.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export const APP_CONFIG = {
1212
API_URL: ''
1313
},
1414
production: {
15-
MARKETING_URL: '',
16-
MAIN_APP_URL: '',
17-
API_URL: ''
15+
MARKETING_URL: 'https://martinmeer.github.io/my-car-tech-tracker-front',
16+
MAIN_APP_URL: 'https://martinmeer.github.io/my-car-tech-tracker-front/app',
17+
API_URL: 'https://your-api-domain.com/api' // TODO: Update with actual API URL
1818
}
1919
},
2020

0 commit comments

Comments
 (0)