Skip to content

Commit

Permalink
Publishing example examples/v7-nextjs-app-router
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 19, 2024
1 parent eef90d0 commit 756ec0f
Show file tree
Hide file tree
Showing 10 changed files with 2,225 additions and 897 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ You can start editing the page by modifying `app/page.tsx`. The page auto-update

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

This project also uses the Next.js Image component which Edgio automatically optimizes and serves images using the Edgio Image Optimization feature.

## Learn More

To learn more about Edgio, take a look at the following resources:
Expand All @@ -34,6 +36,6 @@ Deploy this project on Edgio with the following command:
npm run edgio:deploy
```

Check out our [Next.js documentation](https://docs.edg.io/guides/v7/sites_frameworks/getting_started/next) for more details.
Check out our [Next.js documentation](https://docs.edg.io/guides/v7/sites_frameworks/getting_started/next) for more details.

#
19 changes: 0 additions & 19 deletions edgio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,25 +81,6 @@ module.exports = {
'edgio-community-ecommerce-api-example-default.layer0-limelight.link',
},
},
{
name: 'image',
override_host_header: 'opt.moovweb.net',
hosts: [
{
scheme: 'match',
location: [
{
hostname: 'opt.moovweb.net',
},
],
},
],
tls_verify: {
allow_self_signed_certs: true,
use_sni: true,
sni_hint_and_strict_san_check: 'opt.moovweb.net',
},
},
],

// Options for hosting serverless functions on Edgio
Expand Down
16 changes: 11 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
// This file was automatically added by edgio init.
// You should commit this file to source control.
const { withEdgio } = require('@edgio/next/config')
const { withEdgio } = require('@edgio/next/config');

/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
images: {
domains: [
'edgio-community-ecommerce-api-example-default.layer0-limelight.link',
],
},
};

const _preEdgioExport = nextConfig;;
const _preEdgioExport = nextConfig;

module.exports = (phase, config) =>
withEdgio({
..._preEdgioExport
})
..._preEdgioExport,
});
Loading

0 comments on commit 756ec0f

Please sign in to comment.