Browse Source
- Updated the media upload process to store files in the new `static/media` directory instead of `public/upload`. - Adjusted related components and tests to reflect the new media URL structure, ensuring all references to media assets are consistent with the new path. - Enhanced the environment configuration to support dynamic directory settings for media uploads and static assets. - Improved documentation to outline the changes in media asset management and URL handling. These changes streamline media management and improve the organization of static assets within the project.main
22 changed files with 104 additions and 62 deletions
@ -1,7 +1,10 @@ |
|||
# DATABASE_URL=postgresql://postgres:xxxxxx@localhost:6666/postgres |
|||
DATABASE_URL=file:./db.sqlite |
|||
NITRO_PORT=3399 |
|||
# 站点对外根 URL(含协议与域名,可带端口)。用于:① 媒体库复制绝对链接 ② 文章/资料里绝对地址图片是否计为本站 /public/upload/ 引用。生产环境务必设置,与浏览器访问地址一致。 |
|||
STATIC_DIR=static |
|||
MEDIA_UPLOAD_SUBDIR=media |
|||
TMP_DIR=.tmp |
|||
# 站点对外根 URL(含协议与域名,可带端口)。用于:① 媒体库复制绝对链接 ② 文章/资料里绝对地址图片是否计为本站 /static/media/ 引用。生产环境务必设置,与浏览器访问地址一致。 |
|||
NUXT_PUBLIC_SITE_URL=https://example.com |
|||
# Optional: first admin for an empty instance. Creates an admin only when no user has role=admin yet (same username/password rules as registration). |
|||
BOOTSTRAP_ADMIN_USERNAME= |
|||
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 7.7 KiB |
Loading…
Reference in new issue