Deployment in gh-pages cannot display 404 normally #7015
-
The first picture is the wrong situation, and the second picture is the normal situation. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
And this is also true in zeabur deployment platform, and I am communicating with them. |
Beta Was this translation helpful? Give feedback.
-
Hello @W1ndys, Please keep in mind, to make sure everything works as expected, you would have to set it for each of your different deployment platforms that has a different base URL. You could set it with environmental variables: |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow My site_url is https://ezqfnu.w1ndys.top/ So I guess the problem is not with site_url, maybe the problem is with the corresponding deployment platform? |
Beta Was this translation helpful? Give feedback.
On the screenshot it says that the variables are available in the
vars
context.https://docs.github.com/en/actions/learn-github-actions/contexts#example-usage-of-the-vars-context
In the example it shows that you have to set the
env
with thevars
variable:the
key
in theenv
corresponds to the name used in themkdocs.yml
file.As for the other platform I don't know. You can debug it with a script.
The
!ENV
uses the provided key to access it in theos.environ
object.https://github.com/waylan/pyyaml-env-tag/blob/fdadeb7c859f43c6842bfb743943bfa77fa66f46/yaml_env_tag.py#L31
The…