* Add initial support for new env config file
* Fix serverless processEnv call when no env is provided
* Add missing await for test method
* Update env config to .env.json and add dotenv loading
* ncc dotenv package
* Update type
* Update with new discussed behavior removing .env.json
* Update hot-reloader createEntrypoints
* Make sure .env is loaded before next.config.js
* Add tests for all separate .env files
* Remove comments
* Add override tests
* Add test for overriding env vars based on local environment
* Add support for .env.test
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Use chalk for env loaded message
* Remove constant as it’s not needed
* Update test
* Update errsh, taskr, and CNA template ignores
* Make sure to only consider undefined missing
* Remove old .env ignore
* Update to not populate process.env with loaded env
* Add experimental flag and add loading of global env values
Co-authored-by: Tim Neutkens <timneutkens@me.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
* Add caveat about css support for amp
* Update docs/advanced-features/amp-support/introduction.md
* Update introduction.md
Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
* Mention our communication channels
* Apply suggestions from Shu
Co-Authored-By: Shu Uesugi <shu@chibicode.com>
* Update getting-started.md
Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
* fix: typo in `isStaging` in `with-env` example
- add missing `phase ===` statement when checking for _staging_ env in `isStaging`
* Update examples/with-env-from-next-config-js/next.config.js
* style: fix prettier issue in example `with-env-from-next-config-js`
Co-authored-by: Luis Alvarez D <luis@zeit.co>
The props are being assigned incorrectly based on the `inAppContext`, they should be wrapped in `pageProps` when `inAppContext` is true, not the other way around. This will cause a new apollo client to be created during `getDataFromTree` instead of using the one that has already been created on the server.
* docs: clarify how to customize next/babel presets
The current language confused me, because it says the presets/plugins should not be added to .babelrc, but then they are "added" (in a sense) to .babelrc in the subsequent example. Clarify that they shouldn't be added _as their own presets/plugins_.
* docs: further clarify custom next/babel config
Even more explicit.
* Add support for tsconfig/json `paths` option
* Add tests for paths in tsconfig.json
* Don't apply aliases when paths is empty
* Clean up unused methods and link to TypeScript license
* Add tests for jsconfig
* Put feature under an experimental flag
* Enable to see if tests pass
* Update types
* Add feature under an experimental flag
* initialized example
* Import from "firebase/app"
to get only needed firebase modules
* credentials as env variables
Also, initialize app in a separate file. Much cleaner.
* Update examples/with-firebase-client-side/package.json
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
* fixed environment variables and added .env.example
* added dotenv
* Updated readme
* Renamed example in the readme
* Renamed example files
* Updated title
Co-authored-by: Luis Alvarez D. <luis@zeit.co>
* 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: Luis Alvarez D <luis@zeit.co>
* Add start of Sanity CMS example
* Update cover-image
* Clean up example
* Apply suggestions from code review
Co-Authored-By: Shu Uesugi <shu@chibicode.com>
* Make changes from review
* Remove extra style
* Apply suggestions from code review
Co-Authored-By: Shu 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: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
* Remove outdated examples
* Remove outdated example
* Remove outdated example that doesn't show best practices
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Update preact example
* Update using-router to use useRouter
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Combine examples
* Simplify offered examples
* Remove outdated example
* Add link to new example
* Removed outdated example
* Markdown example has been improved
* Remove example that showed bad practices
* Remove outdated example
* Update polyfills example
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Removed outdated example
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Remove outdated example
* Update webassembly example
* Move example