Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EDU-6099] AI documentation update - 2025-01-24 - redirect requests #1453

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

… creating a maintenance page using Azion's Edge Firewall, focusing on defining criteria and behaviors with custom HTTP responses. Additionally, a new section was added on how to update images in Edge Functions, including the steps for base64 encoding and information on support options for assistance. This addresses user inquiries about creating maintenance pages and updating images while maintaining the original document structure.

Código: 19203
@PedroMiolaSilva PedroMiolaSilva requested a review from a team as a code owner January 24, 2025 20:58

```js
async function handleRequest(request) {
const maintenanceHTML = `<html><body><h1>Site Under Maintenance</h1><p>We are currently performing scheduled maintenance. Please check back soon.</p></body></html>`;
Copy link
Collaborator

@robsongajunior robsongajunior Jan 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using template string you can ident the code to be more visual clearly .

E.G:

const maintenanceHTML = `<html>
    <body>
        <h1>Site Under Maintenance</h1>
        <p>We are currently performing scheduled maintenance. Please check back soon.</p>
    </body>
</html>`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants