{% extends "error_base.html" %}
{% block title %}Web preview — {{ brand_name }}{% endblock %}
{% block error_icon_box_class %}bg-violet-500/10 border-violet-500/20{% endblock %}
{% block error_icon %}globe{% endblock %}
{% block error_icon_color %}text-violet-400{% endblock %}
{% block error_title %}
{% if webview_error_kind == 'refused' %}Can't reach your app{% elif webview_error_kind == 'timeout' %}No response yet{% elif webview_error_kind == 'no_mapping' %}Preview not available{% else %}Web preview error{% endif %}
{% endblock %}
{% block error_message %}
{% if webview_error_kind == 'refused' %}
Nothing is accepting connections on port {{ web_port }} inside your shell right now.
{% elif webview_error_kind == 'timeout' %}
The server did not answer in time. It may still be starting up.
{% elif webview_error_kind == 'no_mapping' %}
This environment has no published web preview port. Create a new shell with web preview, or wait until the container has finished starting.
{% else %}
An unexpected error occurred while loading the preview.
{% endif %}
{% endblock %}
{% block error_message_secondary_class %}mb-10{% endblock %}
{% block error_message_secondary %}
When your web server is running on port {{ web_port }}, refresh this page.
{% endblock %}
{# No home / action buttons #}
{% block error_actions %}{% endblock %}