coba lagi

This commit is contained in:
Irwan Cahyono 2025-08-08 14:05:18 +07:00
parent 8a79a37d29
commit 641c9688ff
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# Dockerfile untuk SPA Nuxt 3
FROM node:24-alpine AS builder
FROM node:23-alpine AS builder
WORKDIR /app
@ -7,6 +7,7 @@ COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
COPY .env ./
RUN npm run generate

View File

@ -79,7 +79,8 @@ export default defineNuxtConfig({
ssr: false,
target: 'static',
generate: {
dir: '.output/public',
fallback: '404.html', // Untuk SPA
routes: [] // Jika perlu generate route spesifik
}
});