Update Astro v5.15.4
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user