Create build step for the web server (#289)

* Create build step for the web server

* Update bskyweb routes and 404 behavior
This commit is contained in:
Paul Frazee 2023-03-14 17:30:15 -05:00 committed by GitHub
parent 8629e167cd
commit 8d2e649b4d
9 changed files with 169 additions and 27 deletions

View file

@ -2,14 +2,26 @@
{% block head_title %}Error {{ statusCode }} - Bluesky{% endblock %}
{# don't include the bundle on error pages #}
{% block head_bundle %}{% endblock %}
{% block body_all %}
{% if statusCode == 404 %}
<h1>404: Not Found</h1>
{% else %}
<h1>{{ statusCode }}: Server Error</h1>
<p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
{% block noscript_extra %}
{%- if statusCode == 404 %}
<h1>404: Not Found</h1>
{% endif %}
{% endblock %}
{# don't include the bundle on non-404 error pages #}
{% block head_bundle %}
{% if statusCode == 404 %}
{{ super() }}
{% else %}
{% endif %}
{% endblock %}
{%- block body_all %}
{% if statusCode == 404 %}
{{ super() }}
{% else %}
<h1>{{ statusCode }}: Server Error</h1>
<p>Sorry about that! Our <a href="https://bluesky.statuspage.io/">Status Page</a> might have more context.
{% endif %}
{% endblock -%}