Environment
-
Node Version: v20.19.6
-
Nitro Version: v2.13.1
Reproduction
preset aws-lambda cannot obtain the parameters
Describe the bug
- Create a route server/home.ts to return event.path
- During the development stage, query is obtained normally
- preset : aws-lambda. npm run build
- Upload aws lambda.
- Access https:xxxxx/home? type=nitro
- event.path shows that /home is missing a query
Additional context
server/routes/home.ts
import { eventHandler } from "h3";
// Learn more: https://nitro.build/guide/routing
export default eventHandler((event) => {
return `
<meta charset="utf-8">
<h1>This is your brand new Nitro project 🚀 </h1>
Home event.path-- ${event.path}
`;
});
nitro.config.ts
import { defineNitroConfig } from "nitropack/config";
// https://nitro.build/config
export default defineNitroConfig({
compatibilityDate: "latest",
srcDir: "server",
imports: false,
preset: "aws-lambda",
});
result
Logs
Environment
Node Version: v20.19.6
Nitro Version: v2.13.1
Reproduction
preset aws-lambda cannot obtain the parameters
Describe the bug
Additional context
result
Logs