Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed Nov 30, 2023
1 parent 1d845e1 commit b23aff9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
26 changes: 26 additions & 0 deletions examples/v7-ef-cloud-fetch/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# Edgio Cloud Fetch Example

https://tristan-lee-edgio-v7-ef-cloud-fetch-example-default.glb.edgio.link/

## Description

This example demonstrates how to use Edgio to [fetch from cloud functions](https://docs.edg.io/guides/v7/edge-functions#fetching-from-cloud-functions), enabling personalization of the Next.js server response at the edge.

## Setup and Installation

- Clone the repository to your local machine.
- Run `npm install` in the repository directory.

## Getting Started

After setting up the project, run `npm run edgio:dev` to start a local development server to test the example functions.

To deploy the project to Edgio, use the command `npm run edgio:deploy`. Note that deployment to Edgio requires you to be
logged into Edgio CLI which can be done via `npm run edgio login` and following the instructions.

## Support

If you have any queries or face issues with this project, please don't hesitate to contact
the [Edgio team](https://edg.io/contact-support/).


This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started
Expand Down
7 changes: 6 additions & 1 deletion examples/v7-ef-cloud-fetch/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ export default function Home() {
href="/edge-override"
className="inline-block bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
>
Go to Edge Override
Go to /edge-override
</a>
</div>
<footer className="z-0 absolute bottom-0 left-0 right-0 bg-gray-800 text-gray-100 text-center text-xs py-2">
<a href="https://github.com/edgio-docs/edgio-v7-ef-cloud-fetch-example">
Example Source Code
</a>
</footer>
</main>
);
}

0 comments on commit b23aff9

Please sign in to comment.