This pull request to the src/app/change-log/page.tsx file improves the Home function by loading the content of the update.md file from a remote server in production mode and from the local file system in development mode. It also adds a new loadContent function to handle the loading of the file content, removes the fs module, and updates the Markdown component to use the content variable instead of the file variable.
Main interface changes:
src/app/change-log/page.tsx: The Home function now loads the content of the update.md file from a remote server in production mode and from the local file system in development mode.
This pull request to the
src/app/change-log/page.tsx
file improves theHome
function by loading the content of theupdate.md
file from a remote server in production mode and from the local file system in development mode. It also adds a newloadContent
function to handle the loading of the file content, removes thefs
module, and updates theMarkdown
component to use thecontent
variable instead of thefile
variable.Main interface changes:
src/app/change-log/page.tsx
: TheHome
function now loads the content of theupdate.md
file from a remote server in production mode and from the local file system in development mode.