Matt Gleich
7d02abc7ce
feat: have .tsx be in ts template for create-next-app ( #25820 )
...
Signed-off-by: Matthew Gleich <git@mattglei.ch>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2021-06-07 18:22:55 +02:00
Houssein Djirdeh
bbc28ccae0
next lint
+ ESLint in Create Next App (#25064 )
...
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2021-06-03 14:01:24 +02:00
Gerald Monaco
1ee97b3c5d
Enable Strict Mode in new create-next-app
projects ( #25696 )
2021-06-02 12:08:54 +02:00
C. Lewis
9c77cda6c5
feat(create-next-app): add --ts, --typescript
support ( #24655 )
...
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2021-05-07 10:08:16 +02:00
Ahmed Essam
5e255b5fa2
Made template look correct in IE11 ( #24245 )
...
## Bug
Fixes #21324
## Documentation / Examples
- [X] Make sure the linting passes
2021-04-20 19:18:41 +00:00
Gary Meehan
c3d06a275f
Switch Create Next App default template to use next/image ( #24076 )
...
Follow PR to #23887 to add next/image.
Only other change was wrapping the image in a span to allow for the margin that was previously on the actual `<img>`
## Documentation / Examples
- [x] Make sure the linting passes
2021-04-15 12:50:39 +00:00
Gary Meehan
4f7f5f30de
Increase base Lighthouse score of default Create Next App template ( #23887 )
2021-04-12 11:16:53 +02:00
Lee Robinson
5a73859fe8
Update docs and Create Next App to use API Middlewares by default. ( #21639 )
2021-01-28 23:34:03 +00:00
Luc Leray
8eaabe2fb0
Fix deploy buttons URLs ( #20834 )
...
Fix all deploy button URLs in the Next.js repo to follow the following format:
```
https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/ <EXAMPLE_NAME>&project-name=<EXAMPLE_NAME>&repository-name=<EXAMPLE_NAME>
```
The detailed docs for the Deploy Button can be found here: https://vercel.com/docs/more/deploy-button .
Also updates legacy Vercel import flow URLs (starting with vercel.com/import or with vercel.com/new/project), to use the new vercel.com/new URLs.
---
For example, for the `hello-world` example:
The URL is https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/hello-world&project-name=hello-world&repository-name=hello-world
And the deploy button looks like this:
[![Deploy with Vercel](https://vercel.com/button )](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/hello-world&project-name=hello-world&repository-name=hello-world )
---
For reference, I used the following regexes to search for the incorrect URLs
```
\(https://vercel.com/import/git\?s=https://github.com/vercel/next.js/tree/canary/examples/(.*) \)
\(https://vercel.com/import/git\?c=1&s=https://github.com/vercel/next.js/tree/canary/examples/ ([^&]*)(.*)\)
\(https://vercel.com/import/project\?template=https://github.com/vercel/next.js/tree/canary/examples/(.*) \)
https://vercel.com/import/git
https://vercel.com/import/select-scope
https://vercel.com/import
https://vercel.com/new/project
```
2021-01-07 01:40:29 +00:00
Erik August Johnson
76c0efb3dd
Update README-template.md for API endpoint info ( #20024 )
...
Adds brief summary in Getting Started to explain the `pages/api` functionality. The intention here is reduce confusion to new users of Next.js as to what `pages/api` is and how it works.
2020-12-14 09:22:55 +00:00
Sam Poder
c5b20d06fa
Remove Random Blank Line in create-next-app ( #17328 )
...
There was a blank line, this PR removes it :D
2020-09-24 08:57:48 +00:00
Tanmay Laud
f00ad581a1
Added .gitignore to examples that are deployed to vercel ( #15127 )
...
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-07-16 10:52:23 -04:00
Mohamed SADAT
aacfa79ddf
feat(create-next-app): Use CSS and CSS modules in default application template ( #13983 )
...
Hello 👋
This PR is to replace styled-jsx by Global CSS and CSS modules in the default Next.js template according to the issue [#13965 ](https://github.com/vercel/next.js/issues/13965 ) opened by @Timer
2020-06-10 21:25:27 +00:00
Joe Haddad
4a12fb0a5f
Normalize example gitignores ( #13768 )
...
This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
2020-06-04 20:39:52 +00:00
Joe Haddad
b7e17e09e5
Update references to zeit/next.js ( #13463 )
2020-05-27 17:51:11 -04:00
Tim Neutkens
483bd3ddda
Rename ZEIT to Vercel ( #12075 )
...
* Find/replace
* Update more URLs
* More rename
* Fix remaining examples
* More updates
* Update create-next-app
* Update remaining text
* Update
Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-04-21 11:47:12 +02:00
JJ Kasper
28ca0a7086
Add API route to default CNA template ( #11981 )
2020-04-17 16:28:58 -05:00
Shu Uesugi
7b0802eb40
Use function for function components ( #11695 )
2020-04-06 10:44:40 +02:00
JJ Kasper
d8155b22ff
Add initial support for new env handling ( #10525 )
...
* 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>
2020-03-26 13:32:41 +01:00
Tim Neutkens
69ba79346f
Update README-template.md
2020-03-05 17:35:41 +01:00
Shu Uesugi
c57cdbb31d
Rename zeit.co/new → zeit.co/import ( #10674 )
...
* Replace zeit.co/new → zeit.co/import
* Update deployment.md
2020-02-24 19:08:34 -05:00
Luis Alvarez D
88b1fe50c5
Remove react import in create-next-app template ( #10564 )
2020-02-18 09:51:11 +01:00
Shu Uesugi
9cfc09e3ab
Simplify create-next-app README ( #10545 )
...
* Rename to README-template.md
* Add yarn scripts
* Rewrite CNA README
* Forgot zeit link
* Simplify
* Update deploy doc
* Just link to the doc
* page is reloaded
* reload → update
* Deploy updates
2020-02-16 16:00:12 +01:00
Shu Uesugi
2ff0913864
Use filter for create-next-app template ( #10496 )
2020-02-11 12:33:27 -05:00
Luis Alvarez D
ea5c5164b2
Update utm links in create-next-app ( #10442 )
...
* Updated links
* Use default-example as the medium
* Apply suggestion
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-06 17:03:51 -06:00
Luis Alvarez D
5a32c9cbbf
Update create app docs ( #10382 )
...
* Updated links
* Added utm
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-02 22:20:04 -05:00
Paco
81fd704681
Update the default template of create-next-app ( #10327 )
...
* Update the default template for create-next-app
* Fix link
2020-01-30 01:14:05 -05:00
Jerry Green
b66c34eac3
Fix js template to be TS compatible ( #9941 )
2020-01-04 12:41:35 +01:00
Joe Haddad
18a9c7e371
Improve linting rules to catch more errors ( #9374 )
...
* Update `packages/`
* Update examples
* Update tests
* Update bench
* Update top level files
* Fix build
* trigger
2019-11-10 19:24:53 -08:00
Ismael Martínez
7674bab7b1
Change /static directory in favor of /public directory for create-next-app ( #8984 )
2019-10-07 18:38:42 -04:00
Jigo Palillo
923547c056
Removes importance link attribute ( #8951 )
2019-10-03 15:05:07 -04:00
Joe Haddad
e8522f4032
Favicon should have low importance ( #8878 )
...
* Favicon should have low importance
* Update index.js
2019-09-27 11:05:31 -04:00
Joshua Byrd
9b3d9f4255
Make favicon work ( #8776 )
2019-09-18 11:15:21 -04:00
Joe Haddad
6444889c9b
Update Create Next App Template ( #8648 )
...
This updates the Create Next App template to remove the "Create Next App" card.
Instead, we now display cards to the docs, learn, and the examples.
2019-09-05 22:51:42 -04:00
Matthew Sweeney
6dbc64ff28
Update Link for create-next-app ( #8423 )
2019-08-19 13:02:58 +02:00
Lukáš Huvar
8dc5d22104
Remove next.config.js ( #8139 )
2019-07-27 19:46:40 +01:00
Joe Haddad
104d18c607
Rewrite Create Next App ( #8030 )
...
* Completely rewrite Create Next App
* Sort imports
* Show what package manager is being used
* Fix project name suggestion
* Update tests for new implementation
* Use normal prepublish command for on-install
* Upgrade Node version
* Switch to 8.16
* Disable v8 cache
* Swap out update check package and fix CLI boot
2019-07-19 15:55:30 -04:00