Skip to content

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

Merged
merged 5 commits into from
Jul 27, 2020

Conversation

levino
Copy link
Member

@levino levino commented Jul 27, 2020

No description provided.

@levino levino force-pushed the feature/deployment branch 2 times, most recently from 54d8458 to 1330d0d Compare July 27, 2020 10:03
@levino levino force-pushed the feature/deployment branch from 1330d0d to 5777d1f Compare July 27, 2020 10:08
@levino levino force-pushed the feature/deployment branch 9 times, most recently from aa0854f to d075850 Compare July 27, 2020 11:08
@levino levino force-pushed the feature/deployment branch from d075850 to 5e1cb8f Compare July 27, 2020 11:16
@levino levino force-pushed the feature/deployment branch from 5295945 to 15335f0 Compare July 27, 2020 12:03
];

for (var i = 55600; i < 85600; i++) {
for (let i = 55600; i < 58600; i++) {
Copy link
Member Author

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 = () => {
Copy link
Member Author

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",
Copy link
Member Author

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.

@levino levino merged commit abd7411 into master Jul 27, 2020
@levino levino deleted the feature/deployment branch July 27, 2020 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant