ulangi kembali
This commit is contained in:
parent
b9a7231036
commit
b8bbe28dd1
@ -8,7 +8,6 @@ RUN npm install --legacy-peer-deps
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV NUXT_SSR=false
|
||||
RUN npm run build
|
||||
|
||||
# Dockerfile untuk server Nuxt 3
|
||||
|
||||
10
nginx.conf
10
nginx.conf
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
// }
|
||||
// },
|
||||
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user