-
Notifications
You must be signed in to change notification settings - Fork 0
Enable deployment of mock backend via netlify functions. #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
54d8458
to
1330d0d
Compare
1330d0d
to
5777d1f
Compare
aa0854f
to
d075850
Compare
d075850
to
5e1cb8f
Compare
5295945
to
15335f0
Compare
]; | ||
|
||
for (var i = 55600; i < 85600; i++) { | ||
for (let i = 55600; i < 58600; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The let
instead of var
comes from prettier on file save. let
is of course correct here as i
is going to be heavily mutated. I also changed the number of returned entities here because the lambda functions refuse to return more than 6mb of data and I see no need for this heavy load test anyhow.
@@ -481,4 +495,16 @@ module.exports = function (app, port) { | |||
}, LONG_DELAY); | |||
} | |||
); | |||
} | |||
|
|||
const createApi = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice factory function that returns a ready to start express app for us.
@@ -20,7 +22,6 @@ | |||
"storybook": "start-storybook -p 9009 -s public", | |||
"build-storybook": "build-storybook -s public" | |||
}, | |||
"homepage": "/app/static", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoding this here is a mistake. We would have to annoyingly overwrite this for every staging deployment. The default value always works fine. For the actual deployment (I guess the app finally is shipped by the Java backend) we would need to set the equivalent environment variable PUBLIC_URL
.
No description provided.