Skip to content

Commit e638099

Browse files
Merge pull request #5 from lambda-feedback-segp-sandbox/transfer-to-lf
Transfer to lambda-feedback
2 parents 918d855 + 3608607 commit e638099

4 files changed

Lines changed: 236 additions & 192 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
name: Publish package to GitHub Packages
44

5-
on: [push]
5+
on:
6+
- push
7+
- workflow_dispatch
68

79
jobs:
810
release:

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Evaluation Function Testing Server
2+
3+
This server is intended to be run locally while using the Response Area
4+
Sandbox. It acts as a proxy between the Sandbox (running within a web browser)
5+
and an evaluation function.
6+
7+
Web browsers send a [preflight
8+
request](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request)
9+
before every GET or POST request which uses the OPTIONS verb. Evaluation
10+
functions (running locally or on AWS) are not configured to respond to OPTIONS
11+
requests, so this proxy is responsible for replying to the preflight request and
12+
forwarding just the POST request to the evaluation function.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"name": "@lambda-feedback-segp-sandbox/ef-test-server",
3-
"version": "0.5.0",
2+
"name": "@lambda-feedback/ef-test-server",
3+
"license": "UNLICENSED",
4+
"version": "1.0.0",
45
"main": "dist/index.js",
56
"scripts": {
67
"build": "yarn tsc",

0 commit comments

Comments
 (0)