mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-01 21:56:52 +00:00
Update page.tsx
This commit is contained in:
parent
d697bf9156
commit
cb95bc1afc
@ -6,7 +6,9 @@ async function getChangelog() {
|
||||
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
|
||||
try {
|
||||
const fileContents = fs.readFileSync(changelogPath, "utf8")
|
||||
return fileContents
|
||||
|
||||
// Asegurar que los saltos de línea dobles se respeten
|
||||
return fileContents.replace(/\r?\n/g, " \n")
|
||||
} catch (error) {
|
||||
console.error("Error reading changelog file:", error)
|
||||
return "Changelog content not found."
|
||||
|
Loading…
x
Reference in New Issue
Block a user