Commit 8650e73a by mvginghina

Mici modificari

parent a43ac260
[config]
command = npm run build && npm start
\ No newline at end of file
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
// Eliminăm complet output: 'export' pentru a evita problemele cu paginile dinamice
// Eliminăm și opțiunile experimentale care cauzează avertismente
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
distDir: 'build',
distDir: '.next', // Folosim directorul standard .next în loc de build
trailingSlash: true,
eslint: {
ignoreDuringBuilds: true,
......
......@@ -45,12 +45,12 @@
"embla-carousel-react": "8.5.1",
"input-otp": "1.4.1",
"lucide-react": "^0.454.0",
"next": "15.2.4",
"next": "^15.2.4",
"next-themes": "^0.4.4",
"react": "^19",
"react": "^19.1.0",
"react-chartjs-2": "latest",
"react-day-picker": "8.10.1",
"react-dom": "^19",
"react-dom": "^19.1.0",
"react-hook-form": "^7.54.1",
"react-resizable-panels": "^2.1.7",
"recharts": "2.15.0",
......
......@@ -46,12 +46,12 @@
"embla-carousel-react": "8.5.1",
"input-otp": "1.4.1",
"lucide-react": "^0.454.0",
"next": "15.2.4",
"next": "^15.2.4",
"next-themes": "^0.4.4",
"react": "^19",
"react": "^19.1.0",
"react-chartjs-2": "latest",
"react-day-picker": "8.10.1",
"react-dom": "^19",
"react-dom": "^19.1.0",
"react-hook-form": "^7.54.1",
"react-resizable-panels": "^2.1.7",
"recharts": "2.15.0",
......
const { createServer } = require('http');
const { parse } = require('url');
const next = require('next');
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
const port = process.env.PORT || 8080;
app.prepare().then(() => {
createServer((req, res) => {
const parsedUrl = parse(req.url, true);
handle(req, res, parsedUrl);
}).listen(port, (err) => {
if (err) throw err;
console.log(`> Ready on http://localhost:${port}`);
});
});
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<webSocket enabled="false" />
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^server.js\/debug[\/]?" />
</rule>
<rule name="StaticContent">
<action type="Rewrite" url="public{REQUEST_URI}" />
</rule>
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True" />
</conditions>
<action type="Rewrite" url="server.js" />
</rule>
</rules>
</rewrite>
<directoryBrowse enabled="false" />
</system.webServer>
</configuration>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment