Skip to content

Commit

Permalink
Remove Next routes
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed May 15, 2024
1 parent 2d3f67d commit d8c3de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/v7-optimizely-edge/edgio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
12 changes: 1 addition & 11 deletions examples/v7-optimizely-edge/routes.ts
Original file line number Diff line number Diff line change
@@ -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',
})

Expand Down

0 comments on commit d8c3de0

Please sign in to comment.