fix: Add build:prod scripts to skip type generation during Docker builds
Some checks failed
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Failing after 12s
build-and-deploy / deploy (push) Has been skipped

- Client and admin builds fail in Docker due to missing ../server directory
- build:prod scripts bypass generate-types step for containerized builds
- Local development still uses full build with type generation
This commit is contained in:
2025-07-05 15:04:06 -06:00
parent 6047937c11
commit 9254e41fce
4 changed files with 6 additions and 4 deletions

View File

@@ -16,8 +16,8 @@ RUN npm install
# Copy source code # Copy source code
COPY . . COPY . .
# Build Vue application # Build Vue application (skip type generation in Docker)
RUN npm run build RUN npm run build:prod
# Expose port # Expose port
EXPOSE 3001 EXPOSE 3001

View File

@@ -6,6 +6,7 @@
"scripts": { "scripts": {
"dev": "npm run generate-types && vite", "dev": "npm run generate-types && vite",
"build": "npm run generate-types && vue-tsc && vite build", "build": "npm run generate-types && vue-tsc && vite build",
"build:prod": "vue-tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"serve": "PORT=3002 nodemon server.js", "serve": "PORT=3002 nodemon server.js",
"start": "NODE_ENV=production node server.js", "start": "NODE_ENV=production node server.js",

View File

@@ -16,8 +16,8 @@ RUN npm install
# Copy source code # Copy source code
COPY . . COPY . .
# Build Vue application # Build Vue application (skip type generation in Docker)
RUN npm run build RUN npm run build:prod
# Expose port # Expose port
EXPOSE 3000 EXPOSE 3000

View File

@@ -6,6 +6,7 @@
"scripts": { "scripts": {
"dev": "npm run generate-types && vite", "dev": "npm run generate-types && vite",
"build": "npm run generate-types && vue-tsc && vite build", "build": "npm run generate-types && vue-tsc && vite build",
"build:prod": "vue-tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"serve": "nodemon server.js", "serve": "nodemon server.js",
"start": "NODE_ENV=production node server.js", "start": "NODE_ENV=production node server.js",