X-lab2017 / open-digger-website

Official Website for OpenDigger Community
https://open-digger.cn
Apache License 2.0
6 stars 6 forks source link

fix: fix base url for preview command #27

Closed frank-zsy closed 2 months ago

frank-zsy commented 2 months ago

Description

This PR will fix the base URL config in the /preview command.

The config will read the env first to set the base URL, so in the action, we set the env to pull_${pull_number}, so the deployed website will use this as the base URL which not break all the relative links in the website.

Resolved issues

Closes #26

Before submitting the PR, please take the following into consideration

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/

frank-zsy commented 2 months ago

/preview

github-actions[bot] commented 2 months ago

🪧The website for this PR is deployed at https://open-digger.cn/pull_27/