- 30 7月, 2020 1 次提交
-
-
由 Luis Alvarez D 提交于
-
- 26 7月, 2020 1 次提交
-
-
由 Tim Neutkens 提交于
-
- 16 6月, 2020 1 次提交
-
-
由 Jesse 提交于
* added graphcms * Updated readme and environment variables * Removed gitignore * Updated tailwind config * Some fixes in pages * Updated api endpoints * lint fix * Updated readme * Updated og image * Updated cms examples to include this one * Added example to docs * Added preview demo link * Updated step Co-authored-by: NLuis Alvarez <luis@vercel.com>
-
- 11 6月, 2020 3 次提交
-
-
由 Shu Uesugi 提交于
[ch2842] - Demo: https://next-blog-storyblok.now.sh/ - Preview Mode: https://next-blog-storyblok.now.sh/api/preview?secret=5nnybHTKlbzkOa6r&slug=draft-post-test
-
由 Jason Merino 提交于
-
由 Shu Uesugi 提交于
[ch2580] **Demo:** https://next-blog-buttercms.now.sh/ **Preview Mode:** https://next-blog-buttercms.now.sh/api/preview?secret=CdEAKMRT4tAwzqiD&slug=draft-post-test
-
- 05 6月, 2020 3 次提交
-
-
由 Shu Uesugi 提交于
❌ `cms-agility-cms`✅ `cms-agilitycms` See: https://github.com/vercel/next.js/tree/canary/examples/cms-agilitycms -
-
由 Jazib Sawar 提交于
* Add Cosmic CMS Example * with native .env support, this file isn't needed anymore * FIX use path alias * Add cosmicjs package * Fix alias import in pages/api/preview * Added: react-imgix & lazysizes package * Load lazysizes in layout * Used imgix image with lazyloading * Added avatar imgix optimizations * EDITED: steps to install content, preview * EDITED: demo link * EDITED: Install step * EDITED: preview link steps * Edited: demo link * FIXED: object_slug * Screenshots * Fixed object_slug link * Update README.md * Fix: formatting issue * Updated readme and renamed .env to env.local * Sanity checks * Handle fallback data when expected * Added link to the example in other examples * Updated demo deployment * Added example to docs * minor lint fix * Remove manual download step * use vercel.json Co-authored-by: NTony Spiro <tspiro@tonyspiro.com> Co-authored-by: NLuis Alvarez <luis@vercel.com>
-
- 03 6月, 2020 1 次提交
-
-
由 Luis Alvarez D 提交于
This was a change that I forgot to push into the Agility CMS example PR, adding it now.
-
- 02 6月, 2020 2 次提交
-
-
由 Shu Uesugi 提交于
* Strapi Example * Fix og image URL * Remove next.config.js * Apply updates * Remove API_URL * Bugfixes * Finish Strapi README * Deploy Strapi * Add strapi examples * now → vercel [ch1796] * Use npx * Minor readme update * Prettier fix Co-authored-by: NLuis Alvarez <luis@vercel.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Luis Alvarez D 提交于
* Added most of the stuff * Updated pages * Removed unrequired deps * API fixes * Fixes fixes and updated readme * Updated og image * Added demo and links to example * Updated packages * update name. bump dependencies * Renamed .env.example to .env.local.example * Added node_modules to .gitignore * use recommended config * enable absolute import/alias support * remove jsconfig.json * allow HTML entities in post titles * add underline to content links * add basic ul & ol styles * add code block styles * add basic text alignment * add basic image alignment styles * adjust pre font-size and figcaption * indent ul,ol lists to line up with grid * add basic button styles * add basic file styles * add basic blockquote style * add basic audio styles * add h4 and enhance blockquote styles * add basic cover block styles * add basic verse styles * add basic two-column block styles * add tags * add categories * Only ignore .vercel The rest is injected by create-next-app * now → vercel * npm init → npx * Wordsmith * Wordsmith * Wordsmith * Wordsmith * Improve issue link * Wordsmith Co-authored-by: NGreg Rickaby <greg@gregrickaby.com> Co-authored-by: NJoe Haddad <joe.haddad@zeit.co> Co-authored-by: NShu Uesugi <shu@chibicode.com> Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
- 28 5月, 2020 3 次提交
-
-
由 Joe Haddad 提交于
As reported here: https://twitter.com/vvoyer/status/1246913957899763712?s=21
-
由 Joe Haddad 提交于
-
由 Manu Schiller 提交于
This adds `InferredStaticProps` and `InferredServerSideProps` to the typings. - [x] add types for type inference - [x] add explanation to docs - [ ] tests - are there any? ![inferred-props](https://user-images.githubusercontent.com/56154253/79068041-24bcab00-7cc4-11ea-8397-ed1b95fbeca7.gif) ### What does it do: As an alternative to declaring your Types manually with: ```typescript type Props = { posts: Post[] } export const getStaticProps: GetStaticProps<Props> = () => ({ posts: await fetchMyPosts(), }) export const MyComponent(props: Props) =>( // ... ); ``` we can now also infer the prop types with ```typescript export const getStaticProps = () => ({ // given fetchMyPosts() returns type Post[] posts: await fetchMyPosts(), }) export const MyComponent(props: InferredStaticProps<typeof getStaticProps>) =>( // props.posts will be of type Post[] ); ``` ### help / review wanted - [ ] I am no typescript expert. Although the solution works as intended for me, someone with more knowledge could probably improve the types. Any edge cases I missed? - [ ] are there any tests I should modify/ add?
-
- 27 5月, 2020 1 次提交
-
-
由 s 提交于
Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
- 19 5月, 2020 1 次提交
-
-
由 Joe Haddad 提交于
-
- 11 5月, 2020 1 次提交
-
-
由 Tim Neutkens 提交于
-
- 02 5月, 2020 1 次提交
-
-
由 Luis Alvarez D 提交于
-
- 24 4月, 2020 1 次提交
-
-
由 Giovanni Giordano 提交于
-
- 17 4月, 2020 1 次提交
-
-
由 Vitor Capretz 提交于
-
- 10 4月, 2020 1 次提交
-
-
由 Tim Neutkens 提交于
* Add Prismic Example * Update package.json * Update constants * Remove react-datocms * Add Preview Mode for Prismic * Add support for Preview Mode * Delete author.jpg * Delete image.jpg * Fixes and readme updates * Fixed issues with preview mode * Updated preview mode steps * Added more posts * Updated readme * Updated readme * Added demo URL * Added related examples links * Added example to docs Co-authored-by: NShu Uesugi <shu@chibicode.com> Co-authored-by: NLuis Alvarez <luis@zeit.co>
-
- 05 4月, 2020 1 次提交
-
-
由 Jaga Santagostino 提交于
-
- 26 3月, 2020 1 次提交
-
-
由 Tim Neutkens 提交于
-
- 20 3月, 2020 1 次提交
-
-
由 Shu Uesugi 提交于
* TakeShape Example * Fix preview logic * Update README * Fix broken link * Be more clear with the relationship field * Use latest next.js for cms examples * Only show enabled items * Ignore current slug * Fix queries * Add takeshape demo * Added link to blog-starter Co-authored-by: NLuis Alvarez D <luis@zeit.co>
-
- 19 3月, 2020 3 次提交
-
-
由 Vincent Voyer 提交于
-
由 JJ Kasper 提交于
* Add start of Sanity CMS example * Update cover-image * Clean up example * Apply suggestions from code review Co-Authored-By: NShu Uesugi <shu@chibicode.com> * Make changes from review * Remove extra style * Apply suggestions from code review Co-Authored-By: NShu Uesugi <shu@chibicode.com> * Make tweaks for preview mode and normalize env naming * Update viewing preview step * Delete author.jpg * Delete image.jpg * Update README * Fix environment variable names * Project ID is needed by lambda * Improved steps * Fixed issue with the project URL example * Clarify line * Get the preview post correctly * preview = false * Get unique posts * Show preview mode on index page * typo fix and use next latest * Added related examples section Co-authored-by: NShu Uesugi <shu@chibicode.com> Co-authored-by: NLuis Alvarez <luis@zeit.co>
-
由 Tim Neutkens 提交于
-
- 18 3月, 2020 1 次提交
-
-
由 Tim Neutkens 提交于
* Update blog-starter example * Updated content * Updated readme * Updated readme * static → assets * Add bottom margin * Add to docs * Add excerpt * Update docs/advanced-features/preview-mode.md Co-authored-by: NLuis Alvarez <luis@zeit.co> Co-authored-by: NShu Uesugi <shu@chibicode.com>
-
- 11 3月, 2020 3 次提交
-
-
由 Yu Watanabe 提交于
-
由 5alidz 提交于
* fix missing open parenthesis * Apply suggestions from code review Co-Authored-By: NJJ Kasper <jj@jjsweb.site> Co-authored-by: NJJ Kasper <jj@jjsweb.site>
-
由 Shu Uesugi 提交于
* Add missing words * Update docs/basic-features/data-fetching.md Co-Authored-By: NJJ Kasper <jj@jjsweb.site> Co-authored-by: NJJ Kasper <jj@jjsweb.site> Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
- 10 3月, 2020 1 次提交
-
-
由 Shu Uesugi 提交于
-
- 09 3月, 2020 3 次提交
-
-
由 Shu Uesugi 提交于
* Copy cms-datocms * Update package.json * Desktop design * Tablet support * Mobile styles * Update titles * Add article page * Minor tweaks * Fix height issue * Improve text colors * Extract Alert and Footer components * Extract avatar * Add Date * Extract container * Fix capitalization * Make it work with no backend * Add paragraph styles * Extract PostPreview * Extract h2 * Extract more stories * Refactor into more components * Update tags * Add missing key * Add custom document for lang="" support * Add dotenv * Load data for the index page * Limit posts * Show post page * Add markdown processing * Forgot margin * Add links * Remove files and add fallback * Add og:image * Add favicon * Add aria-label * Fix prerender * Learn more → read documentation * Fix links and footer * Desaturate using imgix * Add preview secret * Add preview support * Fix preview code * Exit preview mode * Extract getAllPostsWithSlug * Extract getAllPostsForHome * Extract getPreviewPostBySlug * Extract getPostAndMorePosts * Extract constants * Extract markdownToHtml * Fix markdown styles * Fix imgix for author * Add README * Add links to docs
-
由 Tim Neutkens 提交于
-
由 Balázs Orbán 提交于
* Fix getStaticPaths example code * Update docs/basic-features/data-fetching.md Co-authored-by: NTim Neutkens <tim@timneutkens.nl>
-
- 06 3月, 2020 2 次提交
-
-
由 Shu Uesugi 提交于
* Add TypeScript docs * Fix types
-
由 Shu Uesugi 提交于
* Add preview mode file * Update descriptions for data fetching * Add preview mode documentation * Use quotes for front matter * Wordsmith * Fix URL * Minor updates Co-authored-by: NTim Neutkens <timneutkens@me.com>
-
- 05 3月, 2020 2 次提交
-
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
* Update pages doc for SSG * Add data fetching doc * Format code * Link directly to nextjs.org * Fix link * Add .md * Add .md * Fix hashes * Update pages.md * Wordsmith * Fix link * Fix heading * Capitalization * Link to pages * Add router link * Fix parens * Make links consistent * Use commas * Link to fallback pages * Update data-fetching.md * Fix linting Co-authored-by: NTim Neutkens <tim@timneutkens.nl>
-