rebuild the public site on the Next.js App Router with static export, per-section SEO pages, metadata, sitemap, robots and a generated OG image add full-screen scroll-snap regions, staged scroll reveals, a hash-free tab navigation with a sliding indicator and region-by-region menu scrolling replace the theme text toggle with animated sun/moon icons restructure the CRM API into config, middleware, models, routes, services and utils layers redesign the CRM shell with a single surface, tab rail, full-width blurred DataTable, record dialogs and mask-based icons update Docker/Nginx publishing, Makefile targets, shared UI polish and docs Co-authored-by: Gitea Actions <-[email protected]>
This commit was merged in pull request #1.
This commit is contained in:
@@ -15,5 +15,7 @@ RUN npm run build --workspace=${APP_DIR}
|
||||
FROM alpine:3.21 AS export
|
||||
|
||||
ARG APP_DIR
|
||||
# Vite écrit dans `dist/`, Next.js (export statique) dans `out/`.
|
||||
ARG OUTPUT_DIR=dist
|
||||
|
||||
COPY --from=builder /repo/${APP_DIR}/dist /app/dist
|
||||
COPY --from=builder /repo/${APP_DIR}/${OUTPUT_DIR} /app/dist
|
||||
|
||||
+33
-5
@@ -3,6 +3,10 @@ server {
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
|
||||
# Redirections relatives (`/services/`) : derrière un proxy ou un port
|
||||
# publié, un Location absolu sans port casserait la navigation.
|
||||
absolute_redirect off;
|
||||
|
||||
root /usr/share/nginx/html/current;
|
||||
index index.html;
|
||||
|
||||
@@ -11,7 +15,7 @@ server {
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_min_length 1024;
|
||||
gzip_types text/plain text/css application/javascript application/json image/svg+xml application/manifest+json;
|
||||
gzip_types text/plain text/css application/javascript application/json application/xml image/svg+xml image/webp application/manifest+json;
|
||||
|
||||
location = /healthz {
|
||||
access_log off;
|
||||
@@ -19,6 +23,15 @@ server {
|
||||
return 200 "ok\n";
|
||||
}
|
||||
|
||||
# Assets fingerprintés par Next.js : cache long et immuable.
|
||||
location /_next/static/ {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
include /etc/nginx/snippets/cache-immutable.conf;
|
||||
expires 1y;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# Anciens assets Vite (conservés pour les releases encore servies).
|
||||
location /assets/ {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
include /etc/nginx/snippets/cache-immutable.conf;
|
||||
@@ -26,13 +39,28 @@ server {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# Image Open Graph générée par Next.js : fichier sans extension.
|
||||
location = /opengraph-image {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
include /etc/nginx/snippets/cache-immutable.conf;
|
||||
default_type image/png;
|
||||
expires 1y;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# Page d'erreur générée par l'export statique Next.js.
|
||||
location = /404.html {
|
||||
internal;
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
include /etc/nginx/snippets/cache-no-cache.conf;
|
||||
}
|
||||
|
||||
location / {
|
||||
include /etc/nginx/snippets/security-headers.conf;
|
||||
include /etc/nginx/snippets/cache-no-cache.conf;
|
||||
try_files $uri $uri/ @spa;
|
||||
# Export statique : chaque route est un dossier avec son index.html.
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location @spa {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
error_page 404 /404.html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user