fix: Add build:prod scripts to skip type generation during Docker builds
- 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:
@@ -16,8 +16,8 @@ RUN npm install
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build Vue application
|
||||
RUN npm run build
|
||||
# Build Vue application (skip type generation in Docker)
|
||||
RUN npm run build:prod
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "npm run generate-types && vite",
|
||||
"build": "npm run generate-types && vue-tsc && vite build",
|
||||
"build:prod": "vue-tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"serve": "nodemon server.js",
|
||||
"start": "NODE_ENV=production node server.js",
|
||||
|
||||
Reference in New Issue
Block a user