(event, context)
| 50 | * Response: 301 https://www.new-domain.com/path/to/include/in/redirect |
| 51 | */ |
| 52 | export const handler = async (event, context) => ({ |
| 53 | statusCode: event.rawPath.substring(1, 4), |
| 54 | headers: { |
| 55 | location: `https://${ |
| 56 | decodeURIComponent(event.pathParameters.proxy).split('______')[0] |
| 57 | }${event.rawQueryString?.length ? `?${event.rawQueryString}` : ''}`, |
| 58 | 'x-prx-id': context.awsRequestId, |
| 59 | }, |
| 60 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected