Skip to content

Commit d8c3de0

Browse files
committed
Remove Next routes
1 parent 2d3f67d commit d8c3de0

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

examples/v7-optimizely-edge/edgio.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// You should commit this file to source control.
33
// Learn more about this file at https://docs.edg.io/guides/edgio_config
44
module.exports = {
5-
connector: '@edgio/next',
5+
//connector: '@edgio/next',
66

77
// The name of the site in Edgio to which this app should be deployed.
88
// name: 'my-site-name',

examples/v7-optimizely-edge/routes.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
// This file was automatically added by edgio init.
22
// You should commit this file to source control.
33
import { Router } from '@edgio/core/router';
4-
import { nextRoutes } from '@edgio/next';
5-
64
export default new Router()
7-
// NextRoutes automatically adds routes for all Next.js pages and their assets
8-
//.use(nextRoutes)
9-
.match('/:path*', {
10-
origin: {
11-
set_origin: 'wikipedia',
12-
},
13-
})
14-
155
// Add a custom route for the Optimizely Edge Function
16-
.match('/optimizely', {
6+
.match('/', {
177
edge_function: './edge-functions/main.js',
188
})
199

0 commit comments

Comments
 (0)