Tim Neutkens
9506f15afd
Update custom server examples ( #24814 )
2021-05-07 18:50:56 +02:00
Joe Haddad
86160a5190
Upgrade to Prettier 2 ( #13061 )
2020-05-18 15:24:37 -04:00
matamatanot
13bfb9a73d
Update custom-server-express example with getServerSideProps ( #11035 )
...
* use getServerSideProps
* run Prettier
* update react
* use getStaticProps
* delete query
* Remove data fetching requirements
Co-authored-by: “kosuke_matano” <kosuke_matano@cyberagent.co.jp>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-03-13 13:48:07 -05:00
Joe Haddad
53f4f82e4c
Catch all requests in custom server ( #8704 )
...
Some users aren't aware they need to edit their custom server to support various HTTP Methods (e.g. POST for API Routes).
Instead, we should just handle all HTTP Methods out-of-the-box.
---
Closes #8237
2019-09-11 10:23:41 -04:00
Vincent Grafé
d7856c6698
fixes a few inconsistencies in server routes ( #6382 )
...
I spotted a few typos in the server files, that might confuse new/unexperienced users. I hope I did catch them all!
2019-02-21 13:21:22 +01:00
Tim Neutkens
9c4eefcdbf
Add prettier for examples directory ( #5909 )
...
* Add prettier for examples directory
* Fix files
* Fix linting
* Add prettier script in case it has to be ran again
2018-12-17 17:34:32 +01:00
Tim Neutkens
ebf0c47c25
Upgrade standard.js ( #4064 )
...
* Upgrade standard.js
# Conflicts:
# yarn.lock
* Upgrade babel-eslint
2018-03-27 20:11:03 +02:00
Vinicius Camargo
fbd4f03254
Update the custom-server-express with an req.params example ( #3258 )
2017-11-13 12:22:10 +01:00
Brikou CARRE
ba65b07dff
Ease running multiple examples at the same time with process.env.PORT ( #2753 )
2017-08-10 20:15:46 +02:00
Sébastien Dubois
ffeeb682af
Remove useless config override ( #790 )
2017-01-16 14:24:33 -03:00
Naoyuki Kanezawa
917a96a1cd
set build and start npm scripts on all examples ( #549 )
2016-12-28 10:12:24 -08:00
Naoyuki Kanezawa
1708222381
Programmatic API ( #310 )
...
* add 'next' api
* add render APIs
* add 'as' prop to Link
* check Accept header to serve json response
* check if response was finished on getInitialProps call
* move server/app to server/index
* load webpack-hot-middleware-client by absolute path
* server: options for testing
* add tests
* example: improve
* server: make dir optional
* fix client routing
* add parameterized routing example
* link: fix display url
* Add custom-server-express example (#352 )
* Add custom-server-express example
* Remove extraneous nexts in express routes defs
* Update next config in server.js
* Handle accept headers totally inside Next.js (#385 )
* Handle accept headers totally inside Next.js
Now user doesn't need to handle it anymore.
* Move json pages serving to /_next/pages base path.
* Join paths correctly.
* remove next/render
2016-12-16 12:33:08 -08:00