Comments (5)
I did a little research and kicked the tires - I'm getting build errors on the routes so it does seem more complicated than I had thought
issues:
Custom Routes Solution
More great discussion...
how-to-deploy-next-js-app-with-custom-express
...which has a nice example by @hvaoc http://unplggd.co which looks promising
github source <-- I'll try his project
demo <-- I was able to deploy it - it just took awhile... first time it timed out but second time it deployed in about 2 minutes - not sure why it takes so long but its working
from nextjs-starter.
@aruzikulov I'm also interested in this upgrade - I know that the sample now.json for both NextJS and Express are a bit more complex than changing the number but not much more.... we would basically have to configure the routes.
@iaincollins mind if I take a stab at it and then open a PR for you to review?
NextJS sample
{
"version": 2,
"name": "nextjs",
"builds": [
{ "src": "next.config.js", "use": "@now/next" }
]
}
Express sample
{
"version": 2,
"name": "my-express-project",
"builds": [
{ "src": "www/**/*", "use": "@now/static" },
{ "src": "api/**/*.js", "use": "@now/node" }
],
"routes": [{ "src": "/", "dest": "www/index.html" }]
}
from nextjs-starter.
Ugh thanks!
The changes that are now in Next.js 9 and the release of now.sh were why I let this stall for so long.
I hope to update with the new CSS, API route handling in Next.js, and upgrade it to now.sh 2, with additional config that allows it to also be deployed out of the box on Google Cloud Platform, AWS and AWS Edge.
from nextjs-starter.
perfect, can't wait to see your update :)
from nextjs-starter.
Ugh thanks!
The changes that are now in Next.js 9 and the release of now.sh were why I let this stall for so long.
I hope to update with the new CSS, API route handling in Next.js, and upgrade it to now.sh 2, with additional config that allows it to also be deployed out of the box on Google Cloud Platform, AWS and AWS Edge.
Any news?
from nextjs-starter.
Related Issues (20)
- Authentication.md HOT 1
- Adding CORS HOT 2
- Other CSS Framework
- Can i get res in next-auth.functions ?
- What do i need to pull data from a collection?
- TypeError: Cannot read property 'passport' of undefined on production build HOT 1
- Several dependencies need to be updated HOT 1
- Nodemailer needs to be updated HOT 1
- Update to next.js 9? HOT 3
- build:server & export:server commands are not working
- FullCalendar in Nextjs
- Cloning and installing packages is failing because package-lock.json is present
- npm install fails HOT 2
- Memory leak in app created from this boilerplate
- Sign in doesn't work - takes to page not found '_error' does not exist.
- Deployment to Now v2 HOT 2
- 📢 Plans for the future HOT 2
- npm install error - remove package-lock.json before running npm i HOT 1
- 🚨 This project is now archived
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextjs-starter.