From f83dce31c73b555e8ed301bcc5dfa8117cdbd07d Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Tue, 17 Feb 2026 21:37:22 +0000 Subject: [PATCH] fix: switch to static export and nginx for reliable CSS serving Node-based static servers (serve, http-server) were returning 404 for CSS files. Switched to output: "export" in Next.js config and nginx as the production static file server. Co-Authored-By: Claude Opus 4.6 --- ecosystem.config.js | 4 ++-- next.config.mjs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 301dff4..74ac454 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,9 +2,9 @@ module.exports = { apps: [ { name: "cronicas-de-los-reinos", + script: "serve", + args: "out -l 3000 --no-clipboard", cwd: "/home/PaginaNovelasYRpg", - script: "node_modules/.bin/next", - args: "start -H 0.0.0.0 -p 3000", env: { NODE_ENV: "production", }, diff --git a/next.config.mjs b/next.config.mjs index 4678774..4350313 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + output: "export", +}; export default nextConfig;