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 <noreply@anthropic.com>
This commit is contained in:
@@ -2,9 +2,9 @@ module.exports = {
|
|||||||
apps: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: "cronicas-de-los-reinos",
|
name: "cronicas-de-los-reinos",
|
||||||
|
script: "serve",
|
||||||
|
args: "out -l 3000 --no-clipboard",
|
||||||
cwd: "/home/PaginaNovelasYRpg",
|
cwd: "/home/PaginaNovelasYRpg",
|
||||||
script: "node_modules/.bin/next",
|
|
||||||
args: "start -H 0.0.0.0 -p 3000",
|
|
||||||
env: {
|
env: {
|
||||||
NODE_ENV: "production",
|
NODE_ENV: "production",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {};
|
const nextConfig = {
|
||||||
|
output: "export",
|
||||||
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user