From 3ae1904dd46fe2a1ab4364a25942923e0e052358 Mon Sep 17 00:00:00 2001 From: aoncoz Date: Fri, 3 Jul 2026 15:23:51 -0500 Subject: [PATCH] Correcion de logos --- .astro/dev.json | 4 ++-- Dockerfile | 23 ++++++-------------- nginx.conf | 30 ++++++++++++++++++++++++++ node_modules/.vite/deps/_metadata.json | 14 ++++++------ src/config/site.config.ts | 2 +- 5 files changed, 47 insertions(+), 26 deletions(-) create mode 100644 nginx.conf diff --git a/.astro/dev.json b/.astro/dev.json index 474c03d..c89fb38 100644 --- a/.astro/dev.json +++ b/.astro/dev.json @@ -1,5 +1,5 @@ { - "pid": 35532, + "pid": 24524, "port": 4321, "url": "http://localhost:4321", "urls": { @@ -9,5 +9,5 @@ "network": [] }, "background": false, - "startedAt": "2026-07-03T19:21:39.822Z" + "startedAt": "2026-07-03T20:21:47.291Z" } \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index db37d0b..5948fdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,23 +10,14 @@ RUN npm run build FROM nginx:alpine -COPY --from=build /app/dist /usr/share/nginx/html +# Remove default config +RUN rm /etc/nginx/conf.d/default.conf -# SPA fallback for Astro routes -RUN echo 'server { \ - listen 80; \ - root /usr/share/nginx/html; \ - index index.html; \ - location / { \ - try_files $uri $uri/ $uri.html /index.html; \ - } \ - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { \ - expires 1y; \ - add_header Cache-Control "public, immutable"; \ - } \ - gzip on; \ - gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml; \ -}' > /etc/nginx/conf.d/default.conf +# Copy custom config +COPY nginx.conf /etc/nginx/conf.d/default.conf + +# Copy built assets +COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..343bb8a --- /dev/null +++ b/nginx.conf @@ -0,0 +1,30 @@ +server { + listen 80; + server_name _; + root /usr/share/nginx/html; + index index.html; + + # Gzip compression + gzip on; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml; + + # Cache static assets + location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { + expires 1y; + add_header Cache-Control "public, immutable"; + } + + # SPA fallback for Astro routes + location / { + try_files $uri $uri/ $uri.html =404; + } + + # Custom error page + error_page 404 /404.html; + location = /404.html { + internal; + } +} diff --git a/node_modules/.vite/deps/_metadata.json b/node_modules/.vite/deps/_metadata.json index 69692e9..8c18715 100644 --- a/node_modules/.vite/deps/_metadata.json +++ b/node_modules/.vite/deps/_metadata.json @@ -1,31 +1,31 @@ { - "hash": "a0918e5a", - "configHash": "6563c53c", + "hash": "aed0405b", + "configHash": "e77f1ef8", "lockfileHash": "61ccc9c5", - "browserHash": "d0ed25b9", + "browserHash": "79b886e7", "optimized": { "astro > aria-query": { "src": "../../aria-query/lib/index.js", "file": "astro_n_aria-query.js", - "fileHash": "19c9613e", + "fileHash": "8e256489", "needsInterop": true }, "astro > axobject-query": { "src": "../../axobject-query/lib/index.js", "file": "astro_n_axobject-query.js", - "fileHash": "2fd53d34", + "fileHash": "9a56051a", "needsInterop": true }, "astro > html-escaper": { "src": "../../html-escaper/esm/index.js", "file": "astro_n_html-escaper.js", - "fileHash": "7ef1639e", + "fileHash": "87eed326", "needsInterop": false }, "astro/runtime/client/dev-toolbar/entrypoint.js": { "src": "../../astro/dist/runtime/client/dev-toolbar/entrypoint.js", "file": "astro_runtime_client_dev-toolbar_entrypoint__js.js", - "fileHash": "9a8d877b", + "fileHash": "93119450", "needsInterop": false } }, diff --git a/src/config/site.config.ts b/src/config/site.config.ts index 84f101c..de6b120 100644 --- a/src/config/site.config.ts +++ b/src/config/site.config.ts @@ -40,7 +40,7 @@ const siteConfig: SiteConfig = { alt: "IONEX", image: "ionex5.svg", }, - favicon: "/ionex5.svg", + favicon: "ionex5.svg", effects: { cursorTrail: true, },