From d8c3de03ffc41c3213655817bc46e0b616ffb8b9 Mon Sep 17 00:00:00 2001 From: Tristan Lee Date: Wed, 15 May 2024 19:03:55 -0400 Subject: [PATCH] Remove Next routes --- examples/v7-optimizely-edge/edgio.config.js | 2 +- examples/v7-optimizely-edge/routes.ts | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/examples/v7-optimizely-edge/edgio.config.js b/examples/v7-optimizely-edge/edgio.config.js index 66fe43e7e..1aa5cb4bc 100644 --- a/examples/v7-optimizely-edge/edgio.config.js +++ b/examples/v7-optimizely-edge/edgio.config.js @@ -2,7 +2,7 @@ // You should commit this file to source control. // Learn more about this file at https://docs.edg.io/guides/edgio_config module.exports = { - connector: '@edgio/next', + //connector: '@edgio/next', // The name of the site in Edgio to which this app should be deployed. // name: 'my-site-name', diff --git a/examples/v7-optimizely-edge/routes.ts b/examples/v7-optimizely-edge/routes.ts index 3dcd53ae5..17d50e106 100644 --- a/examples/v7-optimizely-edge/routes.ts +++ b/examples/v7-optimizely-edge/routes.ts @@ -1,19 +1,9 @@ // This file was automatically added by edgio init. // You should commit this file to source control. import { Router } from '@edgio/core/router'; -import { nextRoutes } from '@edgio/next'; - export default new Router() - // NextRoutes automatically adds routes for all Next.js pages and their assets - //.use(nextRoutes) - .match('/:path*', { - origin: { - set_origin: 'wikipedia', - }, - }) - // Add a custom route for the Optimizely Edge Function - .match('/optimizely', { + .match('/', { edge_function: './edge-functions/main.js', })