René Keller
44081d0852
fix(lib/db): type mismatch ( #23107 )
...
Fixes "Type 'string' is not assignable to type 'number'." TS warning
2021-03-16 10:31:15 +00:00
unimprobable
f9de10f64d
added port config var to migrate-db.js and .env ( #22395 )
...
Added port config variable to the migrate-db.js script and .env.local.example files. This allows users to set the port for remote databases like Digital Ocean that don't use the default port.
2021-02-22 13:32:23 +00:00
Luc Leray
b442acbe1c
Replace zeit/next.js
with vercel/next.js
( #20849 )
2021-01-07 08:41:04 -05: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
Farhan Ullah
9a73db703f
Fix: Build time error for with-mysql example #19635 ( #19636 )
2021-01-06 11:27:59 -05:00
Allen Hai
3478e1d0cc
[examples] Add Next.js + MySQL example ( #19452 )
...
* [examples] add with-mysql example
* [examples] add demo link to with-mysql readme
* [examples] add next.js + mysql example with correct env pattern
* [examples] fix lint errors, update package name, remove unnecessary res statement
* [examples] remove unused imports and variables
* [examples] fix some linting errors
* Added NextApiHandler to API endpoints
* Lint fixes
* Added useEntry hook
* Updated type
* Update examples/with-mysql/package.json
* Updated readme
* fixed URL
Co-authored-by: Matthew Sweeney <mail@mcs.dev>
Co-authored-by: Luis Alvarez <luis@vercel.com>
2020-11-23 19:13:09 -05:00