mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-02 22:16:54 +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")
|
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
|
||||||
try {
|
try {
|
||||||
const fileContents = fs.readFileSync(changelogPath, "utf8")
|
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) {
|
} catch (error) {
|
||||||
console.error("Error reading changelog file:", error)
|
console.error("Error reading changelog file:", error)
|
||||||
return "Changelog content not found."
|
return "Changelog content not found."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user