Skip to content
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

use pretty urls in mock prodServer #463

Closed
1 of 5 tasks
hutchgrant opened this issue Dec 31, 2020 · 0 comments · Fixed by #464
Closed
1 of 5 tasks

use pretty urls in mock prodServer #463

hutchgrant opened this issue Dec 31, 2020 · 0 comments · Fixed by #464
Assignees
Labels
alpha.4 CLI enhancement Improve something existing (e.g. no docs, new APIs, etc) v0.10.0

Comments

@hutchgrant
Copy link
Member

hutchgrant commented Dec 31, 2020

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

In production server, currently we have URLs being rewritten to end with index.html e.g. /docs/index.html. Since we're using pretty URLs by default in development and production, our mock prodution server should also use pretty URLs.

Details

Modify server. js not to redirect links ending with / to index.html and instead read both .html and / ending links then return the body with the request files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha.4 CLI enhancement Improve something existing (e.g. no docs, new APIs, etc) v0.10.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants