https://github.com/stopsopa/next.js-research
https://github.com/stopsopa/next.js-research
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stopsopa/next.js-research
- Owner: stopsopa
- Created: 2021-06-17T22:54:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T09:43:31.000Z (almost 4 years ago)
- Last Synced: 2025-02-06T08:13:16.635Z (3 months ago)
- Language: Shell
- Size: 10.2 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deploy with docker
https://nextjs.org/docs/deployment#docker-image
# data fetching
getStaticProps (Static Generation)
https://nextjs.org/docs/basic-features/data-fetching# testing what is stripped
https://next-code-elimination.vercel.appfrom: https://nextjs.org/docs/basic-features/data-fetching#write-server-side-code-directly
# This demo features
## yaml based fake apiRun in console
```js
var r = await fetch('/api/yaml/abc'); console.log(JSON.stringify(await r.json(), null, 4))
```# typescript
- https://nextjs.org/docs/basic-features/data-fetching#typescript-use-getstaticpaths
- https://nextjs.org/docs/basic-features/data-fetching#typescript-use-getserversideprops# passHref
https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-function-component# styled-jsx
https://github.com/vercel/styled-jsx
# getInitialProps
https://www.datocms.com/blog/how-the-new-next-js-9-3-preview-mode-works# tips
You cannot use getStaticPaths [with](https://nextjs.org/docs/basic-features/data-fetching#technical-details-1) getServerSideProps.
# todo
- check if preprocessor needed: https://nextjs.org/docs/basic-features/environment-variables#exposing-environment-variables-to-the-browser
- it is checked - preprocessor needed
- remember me checkbox - login form