Nextjs公用文件夹 [英] Nextjs public folder
本文介绍了Nextjs公用文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
nextjs项目的 public 文件夹在哪里?
Where is the public folder for a nextjs project?
我的意思是,我可以在哪里放置favicon.png
,Google网站验证,manifest.json
,robots.txt
等?
I mean, is there somewhere where I can put favicon.png
, google site verification, manifest.json
, robots.txt
, etc. ?
推荐答案
[2019-07-16] Next.js(canary)具有public/
文件夹
[2019-07-16] Next.js(canary) has a public/
folder
创建诸如public/favicon.png
,public/robots.txt
之类的东西,这就是您所需要的.
Create stuffs like public/favicon.png
, public/robots.txt
and that's all you need.
结帐文档
这篇关于Nextjs公用文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文