From 07a8d00f8576c327face1456852d68a33beaa41a Mon Sep 17 00:00:00 2001 From: Tristan Lee Date: Mon, 2 Oct 2023 16:01:08 -0400 Subject: [PATCH] Fix css in EF example; add note to router for activation --- .../functions/general/sample-html-page.js | 4 ++++ examples/v7-edge-functions/routes.js | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/examples/v7-edge-functions/functions/general/sample-html-page.js b/examples/v7-edge-functions/functions/general/sample-html-page.js index cdac239b5..5586155ae 100644 --- a/examples/v7-edge-functions/functions/general/sample-html-page.js +++ b/examples/v7-edge-functions/functions/general/sample-html-page.js @@ -79,6 +79,10 @@ export async function handleHttpRequest(request, context) { a:hover { color: #3700B3; } + pre { + overflow-wrap: break-word; + white-space: pre-wrap; + } diff --git a/examples/v7-edge-functions/routes.js b/examples/v7-edge-functions/routes.js index ffb5f86d2..92aae3983 100644 --- a/examples/v7-edge-functions/routes.js +++ b/examples/v7-edge-functions/routes.js @@ -7,7 +7,17 @@ export default new Router() .use(edgioRoutes) .static('public') - // Edgio Functions + // ================== IMPORTANT ================== + // ========== Edge Functions Activation ========== + // + // Before deploying, Edge Functions must be enabled on your account. Failing to do so will result in deployment failures. + // For local testing, you may run the examples without activation. Refer to the README for more guidance on local testing. + // + // For information on how to activate this feature, please visit: + // https://docs.edg.io/guides/v7/edge-functions + // + // =============================================== + .match('/', { edge_function: './functions/general/sample-html-page.js', })