小编ter*_*ris的帖子

将新的 Next.js Image 组件与 Material UI 结合使用

在 Material UI 中,显示图像的组件具有图像参数。例如:

\n
<Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" />\n
Run Code Online (Sandbox Code Playgroud)\n

Next.js v10 中有一个新的Image自动缩放图像的组件:\xc2\xa0https://nextjs.org/docs/api-reference/next/image\xc2\xa0

\n

有人知道如何Image在 Material UI 中使用新组件吗?

\n

material-ui next.js nextjs-image

11
推荐指数
1
解决办法
7177
查看次数

在节点中使用 apollo -(无反应)

我想使用 apollo 进行一些批量更新。我需要从节点启动批处理脚本。\negnode myscript.js

\n

我无法\xc2\xa0弄清楚如何执行此操作。\xc2\xa0是否有一个简单的示例可以执行入门中描述的操作:https ://www.apollographql.com/docs/react/get-开始/但没有\xc2\xa0react ?

\n

(我的代码在使用react时工作得很好)

\n

apollo apollo-client

6
推荐指数
2
解决办法
4028
查看次数

Next.js 服务器端登录 getServerSideProps 或 api?

在 Next.js 中登录服务器端的最佳实践是什么?

我有同步两个数据库的代码,我需要查看日志。我正在考虑使用像 Papertrail 这样的外部日志记录服务,但我找不到任何示例。

你用什么?

papertrail-app next.js

5
推荐指数
0
解决办法
1960
查看次数