Comments (5)
That was a typo. The request is expected. Origin of request is the client. When there is a client side navigation within the app on the same route ( but on a different query string parameter ), client makes a request to getServerSideProps in the form of /_next/data/buildId/index.json. However, it seems Lambda is not able to figure out what to make of it.
Not a typo. Happened because I used carets
from nextjs-lambda.
@js-sapphire I tried replicating without much luck :/ could you try to share repo steps?
I will try to support you, however, please consider EOL (#97) for this package.
from nextjs-lambda.
Hey!
_next/data
are basically API route I believe. It's handled by Next's server.
'_next/data/*': {
...defaultOptions,
origin: serverOrigin,
},
What seems weird is that doubled //
in your path _next/data//index.json
. I would imagine that causing and issue probably. Question is, why is it doubled 🤔 Could you investigate the origin of this request (I would expect getServerSideProps
making it).
from nextjs-lambda.
I can spin up an example and share repo if that helps. I couldn't find much info on Next SSR Standalone + AWS Lambda but for your package's github. Let me know if that'd help in your investigation ( if you have time for this ofcourse )
from nextjs-lambda.
Thanks @sladg
Will share ASAP.
from nextjs-lambda.
Related Issues (20)
- Allow for use of `www` HOT 1
- Migrate to programatic aws-cdk
- Update certficate contruct HOT 1
- Specify lambda node runtime via cli HOT 3
- Specify Profile for CDK to use HOT 5
- Hotswap CLI flag breaks first deploy HOT 2
- Support for Cloudfront Alternate Domain Names HOT 2
- [FR] Allow to bypass Route53 DNS record. HOT 4
- [FR] Implement ISR HOT 5
- Forward the Host header to the origin HOT 6
- API Cache not Setting Correctly HOT 2
- Packaging doesn't include index.html? HOT 1
- Process failed with error: Error: Public folder assets must be nested in public/assets folder HOT 2
- Dependency upgrade HOT 1
- `config.json` 's body is just `nextConfig`, not valid JSON. HOT 1
- Getting the response body returned with Base64 encoded with `compress: false` HOT 7
- wrong version from `--version` HOT 1
- Deploy via CDK requires extra dependencies HOT 5
- EOL announcement HOT 2
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-lambda.