Correcion de logos

This commit is contained in:
Aaron Co 2026-07-03 15:23:51 -05:00
parent 58de246264
commit 3ae1904dd4
5 changed files with 47 additions and 26 deletions

View file

@ -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"
}

View file

@ -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

30
nginx.conf Normal file
View file

@ -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;
}
}

View file

@ -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
}
},

View file

@ -40,7 +40,7 @@ const siteConfig: SiteConfig = {
alt: "IONEX",
image: "ionex5.svg",
},
favicon: "/ionex5.svg",
favicon: "ionex5.svg",
effects: {
cursorTrail: true,
},