Skip to content

Commit 5dd0780

Browse files
author
David Liu
committed
fix nitro dependency
1 parent 480d11c commit 5dd0780

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

web/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ WORKDIR /app
2525
# Copy built application (Nitro outputs to .output)
2626
COPY --from=builder /app/.output ./.output
2727

28+
# Install server dependencies
29+
WORKDIR /app/.output/server
30+
RUN npm install --production
31+
2832
# Set environment variables
33+
WORKDIR /app
2934
ENV NODE_ENV=production
3035
ENV HOST=0.0.0.0
3136
ENV PORT=8080

web/nitro.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { defineNitroConfig } from 'nitro/config'
22

33
export default defineNitroConfig({
44
serveStatic: true,
5-
noExternals: false,
65
rollupConfig: {
76
external: ['react', 'react-dom', 'three', '@react-three/fiber', '@react-three/drei'],
87
},

0 commit comments

Comments
 (0)