ulangi kembali

This commit is contained in:
Irwan Cahyono 2025-08-08 11:28:18 +07:00
parent b9a7231036
commit b8bbe28dd1
3 changed files with 15 additions and 12 deletions

View File

@ -8,7 +8,6 @@ RUN npm install --legacy-peer-deps
COPY . .
ENV NUXT_SSR=false
RUN npm run build
# Dockerfile untuk server Nuxt 3

View File

@ -9,12 +9,16 @@ server {
try_files $uri $uri/ /index.html;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 7d;
access_log off;
location /_nuxt/ {
expires 1y;
add_header Cache-Control "public";
}
location = /index.html {
expires -1;
add_header Cache-Control "no-store";
}
location ~ /\. {
deny all;
}

View File

@ -73,13 +73,13 @@ export default defineNuxtConfig({
},
ssr: false,
nitro: {
preset: 'static', // Generate file static
prerender: {
failOnError: false, // Skip error saat generate
ignore: ['/dynamic-route'], // Ignore route tertentu
crawlLinks: false // Nonaktifkan crawler
}
},
// nitro: {
// preset: 'static', // Generate file static
// prerender: {
// failOnError: false, // Skip error saat generate
// ignore: ['/dynamic-route'], // Ignore route tertentu
// crawlLinks: false // Nonaktifkan crawler
// }
// },
});