Update Astro v5.15.4

This commit is contained in:
ricocc
2025-11-08 16:20:26 +08:00
parent f1bcb1489f
commit 4cf082c589
22 changed files with 181 additions and 236 deletions

View File

@@ -6,10 +6,9 @@ import { fileURLToPath } from "url";
import path from "path";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// 从环境变量获取站点 URL如果没有设置则使用默认值
// 注意:首次部署后请务必在 .env 文件中设置正确的 PUBLIC_SITE_URL
const siteUrl = process.env.PUBLIC_SITE_URL || 'https://portfolio.ricoui.com/';
// Get the site URL from environment variables, or use the default value if not set
// Note: After the first deployment, be sure to set the correct PUBLIC_SITE_URL in the .env file
const siteUrl = import.meta.env.PUBLIC_SITE_URL || 'https://portfolio.ricoui.com/';
// https://astro.build/config
export default defineConfig({
@@ -25,10 +24,6 @@ export default defineConfig({
}
},
legacy: {
collections: true,
},
server: {
port: 5200,
},