🏃 ✌️ 💪
Built with ❤︎ by
Stockport Council and
contributors
Stockportgov design system lambda function to serve .css files depenendent on the version requested.
The lambda function returns a 302 to the relevant file in S3. If no files can be found or an error occurs then either a 400, or 404 is returned.
- npm
- node
- jest
- clone repo
npm i
- All code has be written in index.js, as the lambda function is rather small.
- All tests have been written in index.test.js for the same reason as above.
- We are not using nodes
--experimental-modules
as this flag is not available on AWS lambdas. Therefore, things likeimport x from 'y'
are not available.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.