This commit is contained in:
2025-08-08 02:02:10 +07:00
parent 8c3e2723c6
commit c48049c2f9
3 changed files with 14 additions and 3 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ RUN npm install --legacy-peer-deps
COPY . .
ENV NUXT_FAIL_ON_ERROR=false
RUN npm run generate
ENV NUXT_SSR=false
RUN npm run build
# Dockerfile untuk server Nuxt 3
FROM nginx:alpine
+2 -1
View File
@@ -77,7 +77,8 @@ export default defineNuxtConfig({
preset: 'static', // Generate file static
prerender: {
failOnError: false, // Skip error saat generate
ignore: ['/dynamic-route'] // Ignore route tertentu
ignore: ['/dynamic-route'], // Ignore route tertentu
crawlLinks: false // Nonaktifkan crawler
}
},
+10
View File
@@ -0,0 +1,10 @@
<template>
<div>
<h1>Error {{ error.statusCode }}</h1>
<p>{{ error.message }}</p>
</div>
</template>
<script setup>
const error = useError()
</script>