Halo, I am working in amp, found <meta name="viewport" content="width=device-width,initial-scale=1"> can not be overwritten, I hope this can be done in next version,
thanks
It can be overwritten by adding a new meta array in config.js. Then it will appear two <viewport> tag in your html <head> tag, the latter one will overwrite the previous one.
wait, maybe I miss something in the docs about meta inside config.js
if you meant head options in config.js, yes it produce duplicate meta viewport that invalid in amp
can be resolved with #733
For any strangers, who try to set viewport: just add it to config.js -> head, e.g.
module.exports = (ctx) => ({
head: [
['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }],
],
...
Most helpful comment
For any strangers, who try to set viewport: just add it to config.js -> head, e.g.