Skip to content

Commit 10f555d

Browse files
authored
[fix] Disable meta http-equiv in static amp (#4073)
* Disable http-equiv in AMP * Add changeset
1 parent 56ae395 commit 10f555d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/eight-chicken-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
Disable meta http-equiv tags for static amp configuration

packages/kit/src/runtime/server/page/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export async function render_response({
278278
}
279279
}
280280

281-
if (state.prerender) {
281+
if (state.prerender && !options.amp) {
282282
const http_equiv = [];
283283

284284
const csp_headers = csp.get_meta();

0 commit comments

Comments
 (0)