Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mauriciogirardi/ecommerce-game-web


https://github.com/mauriciogirardi/ecommerce-game-web

Last synced: about 12 hours ago
JSON representation

Awesome Lists containing this project

README

        



eCommerce Game


## todo docs

teste ci

```bash
// GetStaticPaths
export async function generateStaticParams() {
return [{ id: '1' }, { id: '2' }]
}

export default async function Page() {
// This request should be cached until manually invalidated.
// Similar to `getStaticProps`.
// `force-cache` is the default and can be omitted.
const staticData = await fetch(`https://...`, { cache: 'force-cache' })

// This request should be refetched on every request.
// Similar to `getServerSideProps`.
const dynamicData = await fetch(`https://...`, { cache: 'no-store' })

// This request should be cached with a lifetime of 10 seconds.
// Similar to `getStaticProps` with the `revalidate` option.
const revalidatedData = await fetch(`https://...`, {
next: { revalidate: 10 },
})

return

...

}
```