-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix: Support .html requests in dev #3401
Conversation
🦋 Changeset detectedLatest commit: 3258e26 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
80b4f6b
to
ed0fcce
Compare
expect(response.status).to.equal(200); | ||
}); | ||
|
||
it('200 when loading /', async () => { |
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.
👍 glad to see this test, we should still support not including index.html
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.
I could have also named this PR "Fun with Regexes" 😄
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.
lgtm
* WIP: this regex should handle .html as well * much simpler! Just fix the req.url, don't touch the manifest * only handle .html requests when config.build.format === 'file' * chore: add changeset
Changes
This updates the dev server to support
.html
requests, currently only/blog
is matched and/blog.html
would 404Testing
Added a test to verify
.html
is supported in dev whenconfig.build.format === 'file'
Docs
None, bug fix only