在我的 Next.js 组合网站上运行一些性能检查后,我注意到 mainindex.html缺少一个lang属性 - 该属性作为可访问性分数的扣除项而返回。
我可以使用 i18n 设置来添加区域设置next.config.js,但这些功能与next export- 该站点是静态生成的不兼容。
Error: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment
Run Code Online (Sandbox Code Playgroud)
还有其他方法可以添加lang属性吗?
我不想手动定义服务名称,而是从 package.json 中serverless.yml读取name
我已经在 React 中构建了一个站点,并且想要使用 iOS WKWebView 中的构建文件。
跟进
为了运行一个 React 构建文件夹,它必须被提供,所以目前实现这一目标的唯一方法是在 iOS 应用程序中构建一个服务器,提供 React 构建文件,并在 WKWebView 中加载本地 url。
我为服务器找到的最佳选择是 https://criollo.io/#getting-started。
为什么是最好的?