Skip to content

App upload to Github Pages #997

Answered by kettanaito
lukbar48 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @lukbar48.

You get 405 from GitHub because POST requests are forbidden against GitHub pages.

When you open the browser's console and refresh the page, there's no [MSW] Mocking enabled message displayed. That's a straight sign that MSW is not included in your application. If you go to your src/index.tsx, you can see the exact condition that excludes it. MSW is, generally, a development tool, that's why most resources online recommend including it only when developing. If I understand your use case correctly, you wish to have MSW as a server replacement for your application in production. In that case, remove the if condition that checks process.env.NODE_ENV and the library will be incl…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukbar48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants