Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mauriciogirardi/ecommerce-game-web
https://github.com/mauriciogirardi/ecommerce-game-web
Last synced: about 12 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mauriciogirardi/ecommerce-game-web
- Owner: mauriciogirardi
- Created: 2024-01-12T20:49:04.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-17T20:42:05.000Z (8 months ago)
- Last Synced: 2024-03-18T15:40:11.292Z (8 months ago)
- Language: TypeScript
- Size: 3.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
...
}
```