From 36d50e75d3aa73792c287cf85cc59c82cfa90f5c Mon Sep 17 00:00:00 2001 From: John Niang Date: Mon, 3 Apr 2023 11:50:13 +0800 Subject: [PATCH] Configure default external-url as slash (#3655) #### What type of PR is this? /kind improvement /area core #### What this PR does / why we need it: Configure default external-url as slash. So that system will generate relative links for all permalinks. See https://github.com/halo-dev/halo/issues/3654 for more. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3654 #### Does this PR introduce a user-facing change? ```release-note None ``` --- application/src/main/resources/application.yaml | 2 +- console/.env.development | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/src/main/resources/application.yaml b/application/src/main/resources/application.yaml index 80ca20902..eed22938b 100644 --- a/application/src/main/resources/application.yaml +++ b/application/src/main/resources/application.yaml @@ -28,7 +28,7 @@ spring: max-age: 365d halo: - external-url: "http://${server.address:localhost}:${server.port}" + external-url: "/" work-dir: ${user.home}/.halo2 plugin: plugins-root: ${halo.work-dir}/plugins diff --git a/console/.env.development b/console/.env.development index fd3af7a78..9eb2c6087 100644 --- a/console/.env.development +++ b/console/.env.development @@ -1,2 +1,2 @@ -VITE_API_URL=http://localhost:8090 +VITE_API_URL= VITE_BASE_URL=/console/