Skip to content

Commit d924ade

Browse files
committed
feat: improved prod build
1 parent fd9162e commit d924ade

3 files changed

Lines changed: 5 additions & 38 deletions

File tree

.github/workflows/deploy-app.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ on:
99
- 'apps/backend/**'
1010
- 'apps/frontend/**'
1111
- 'packages/**'
12-
- '.github/workflows/deploy-app.yml'
12+
- '.github/workflows/deploy-app.yaml'
1313

1414
env:
1515
AZURE_WEBAPP_NAME: 'trakrlog-app-web'
1616
NODE_VERSION: '22.x'
17-
NODE_ENV: production
1817

1918
jobs:
2019
build-and-deploy:
@@ -33,9 +32,9 @@ jobs:
3332
with:
3433
node-version: ${{ env.NODE_VERSION }}
3534
cache: 'pnpm'
36-
- name: Install dependencies
35+
- name: Install dependencies (including dev dependencies for build)
3736
run:
38-
pnpm install
37+
pnpm install --include=dev
3938

4039
# --- Setup Bun ---
4140
- name: Setup Bun
@@ -44,6 +43,8 @@ jobs:
4443
# --- Build the projects with Turbo ---
4544
- name: Build with Turbo
4645
run: npx turbo run build
46+
env:
47+
NODE_ENV: production # Production build with devDependencies available via --include=dev
4748

4849
# --- Prepare for Deployment ---
4950
- name: Prepare backend directory for React build
@@ -65,11 +66,6 @@ jobs:
6566
# Now chmod can find the executable
6667
chmod +x backend-app
6768
68-
# Verify the structure
69-
echo "Contents of backend directory:"
70-
ls -la
71-
echo "Contents of frontend/build directory:"
72-
ls -la frontend/build/
7369
7470
# Then, create the zip file from the backend folder
7571
zip -r release.zip ./*

alternative-deploy-step.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/frontend/vite.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,4 @@ import tailwindcss from '@tailwindcss/vite'
66
// https://vite.dev/config/
77
export default defineConfig({
88
plugins: [react(), tailwindcss()],
9-
// resolve: {
10-
// alias: {
11-
// '@trakrlog/common': path.resolve(__dirname, '../../packages/common/src')
12-
// }
13-
// }
149
})

0 commit comments

Comments
 (0)