Comments (2)
as described in the above link, I've added target: 'serverless'
to the next.config.js
and "now-build": "next build"
to the package.json
. also ran yarn add next@canary
as described here: https://github.com/zeit/now-builders/issues/155 which changed the 'latest' version with a real version in the dependence list
finally, added back a now.json
:
{
"alias": ["mwg.ekkis.now.sh"],
"name": "mwg",
"version": 2,
"builds": [{ "src": "next.config.js", "use": "@now/next" }]
}
but it just refuses to deploy
one more thing, I changed the "now-build" script in package.json
to next build && next export -o dist
and now.json
now uses "builds": [{ "src": "package.json", "use": "@now/static-build" }]
but to no avail
this is utterly hopeless. I've now burnt a couple of hours and I can't even install
from nextjs-starter.
I was experiencing a similar issue and adding
target: 'experimental-serverless-trace',
to next.config.js
.
Note that builds
is a deprecated config key in the latest version of now. The project that I had this issue with sets the build info in Project Settings via the zeit web UI, which I think is the direction Zeit is headed with this kind of config to support monorepo and other use cases. As another troubleshooting step you may try that out (and double check that now
CLI is on the latest version). Hope that helps and good luck!
from nextjs-starter.
Related Issues (20)
- Upgrade the deployment settings to now v2 HOT 5
- 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.
- 📢 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.