mirror of
				https://github.com/eledio-cloud/standard-redirects-for-cloudfront.git
				synced 2025-10-31 00:12:56 +01:00 
			
		
		
		
	Runtime updated to nodejs10.x
This commit is contained in:
		
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							| @@ -1,7 +1,7 @@ | ||||
| 'use strict'; | ||||
|  | ||||
| /* | ||||
|   Copyright 2017 DigitalSailors e.K. | ||||
|   Copyright 2017-2019 DigitalSailors e.K. | ||||
|  | ||||
|   Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|   you may not use this file except in compliance with the License. | ||||
| @@ -18,7 +18,7 @@ | ||||
|  | ||||
| exports.handler = (event, context, callback) => { | ||||
|   const request = event.Records[0].cf.request; | ||||
|    | ||||
|  | ||||
|   let prefixPath; // needed for 2nd condition | ||||
|  | ||||
|   if (request.uri.match('.+/$')) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user