MikeBild / sveltekit-adapter-aws

A SvelteKit adapter for AWS using the AWS-CDK
MIT License
135 stars 31 forks source link

Internal Server Error #48

Open ruckc opened 9 months ago

ruckc commented 9 months ago

Describe the bug In testing a brand new app, get Internal Server Error. The LambdaServerHandler logs show

{
    "errorType": "ReferenceError",
    "errorMessage": "Request is not defined",
    "stack": [
        "ReferenceError: Request is not defined",
        "    at Runtime.handler (/var/task/index.js:4572:9)"
    ]
}

To Reproduce Steps to reproduce the behavior:

  1. npm create svelte@latest
  2. npm install
  3. npm add -D aws-cdk sveltekit-adapter-aws
  4. npm run build

Expected behavior I expect to see Welcome to SvelteKit on the cloudfront distribution endpoint

Desktop (please complete the following information):

Additional context Add any other context about the problem here.