-
Notifications
You must be signed in to change notification settings - Fork 357
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: adds html injections to dev proxy [CRE-1203] #6686
Conversation
@@ -7,7 +7,6 @@ import { format } from 'util' | |||
|
|||
import { DefaultLogger, Project } from '@netlify/build-info' | |||
import { NodeFS, NoopLogger } from '@netlify/build-info/node' | |||
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module '@net... Remove this comment to see the full error message | |||
import { resolveConfig } from '@netlify/config' |
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.
This is fixed by this:
netlify/build@cf45931
@@ -1,6 +1,5 @@ | |||
import process from 'process' | |||
|
|||
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module '@net... Remove this comment to see the full error message | |||
import { applyMutations } from '@netlify/config' |
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.
This is fixed by this:
netlify/build@cf45931
case 'deflate': | ||
return await deflate(body) | ||
return await inflate(body) |
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.
inflate
is for decompressing.
deflate
is for compressing.
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.
Why is the case deflate
?
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.
@smnh I think the PR is ready to merge, just curious about this last point. If case "deflate": return inflate
is intentional I think adding a code comment about why we handle the "deflate" case with "inflate" is a good idea here
2655990
to
67a057d
Compare
67a057d
to
bd7ed65
Compare
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.
@smnh I think a small test is a good idea if possible
This enables visual-editor plugin to inject snippet into html in dev mode.
Related PRs: