by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    akoDing
    @akoDing
    这是为什么呢
    VH
    @yonghui66
    引入百度地图时,第一次进入页面时,怎么不会加载
    1215708470
    @1215708470
    我在当前页面怎么刷新才可以避免数据缓存问题。换个账号登陆后,页面数据为什么还是上个账号的数据 。
    window.location.reload(true);//退出登陆刷新页面
    window.location.reload(true)//登陆成功后刷新页面
    这个问题 好像没有解决的办法
    gitxiaogui
    @gitxiaogui
    next.js项目界面突然显示An unexpected error has occurred 并白屏,这个是什么问题引起的,有知道的大佬吗?帮解下疑惑
    Ji Nan
    @ji-nan
    这个社区好像不怎么热闹啊
    END
    @Tianyazz
    这个社区有人吗,请教个问题
    渲染后,网页源码里会生成NEXT_DATA里存了大量的数据。怎样才能去除掉这一部分源码。考虑到百度蜘蛛把页面源码的时候,爬到这部分数据,会是大量的无用数据
    Diogo Fernandes
    @imaginamundo
    Hello, I've built an boilerplate for nextjs and would like to share :D
    https://next-js-boilerplate.herokuapp.com
    It has a SEO component;
    2 HOC components, to control access (generally via auth, secure and default);
    A context around the whole application;
    An error page that matches the layout (without the default error)
    TypeScript, PWA and tests with Jest and React Testing Library
    And a hook to get the context
    WayneVN
    @WayneVN
    今天有人么
    有谁 遇见过next.js(7) 屏幕
    pm2
    不知道啥原因500了,然后.next文件消失
    noodv
    @noodv
    有人吗?
    我想在next.js中引入quill富文本编辑器,有引过的吗???我没引入过,有偿求教
    我想在next.js中引入quill富文本编辑器,有引过的吗???我没引入过,有偿求教
    我想在next.js中引入quill富文本编辑器,有引过的吗???我没引入过,有偿求教
    我想在next.js中引入quill富文本编辑器,有引过的吗???我没引入过,有偿求教
    我想在next.js中引入quill富文本编辑器,有引过的吗???我没引入过,有偿求教
    子慕大诗人
    @zimv
    @Tianyazz 那个是同构用的数据,不能删
    @gitxiaogui 应该是代码哪里错误了,有时候报错并不是能直接指向具体位置,next nuxt都有这个问题
    @WayneVN 又发现你了
    Tim Rijkse
    @timrijkse
    Any nextjs end bosses who can help out? I have a wildcard route which always resolves my index page. There I do an API request which could return a 404. When it returns a 404 I render an Error component, all good. But status code in network tab is still 200. Whyyy :(
    子慕大诗人
    @zimv
    @timrijkse The Error component is a expected return.Maybe you need to set the response to ctx.response.status=404?
    Tim Rijkse
    @timrijkse
    @zimv I’m trying that but without any luck :(
    子慕大诗人
    @zimv
    @timrijkse You can try this: static getInitialProps({ res, err }) { res.statusCode = 404;}
    wennjie
    @wennjie
    问一下 css 加载慢怎么解决
    子慕大诗人
    @zimv
    @wennjie nextjs项目里的所有依赖的css都会被全量加载,并不是异步切换路由的时候加载某个页面的css,而是直接把项目所有的css全部加载到一起了。尽量按需加载一些三方库
    Hrishikesh Bawane
    @hrishibawane
    I need to get fonts in my nextjs project (google fonts or others). How should it be done?
    子慕大诗人
    @zimv
    @hrishibawane You can insert <link> in pages/_document.js.
    Hrishikesh Bawane
    @hrishibawane
    @zimv Can you send me how _document.js file should be. Because my pages dir doesnt have _document.js
    子慕大诗人
    @zimv
    Michael Continues
    @mikestopcontinues
    Anyone deploying next with aws-cdk?
    sunhangye
    @sunhangye
    请教下 next demo 1000并发直接报500了怎么回事
    Jerry
    @510846
    大家好,跟大家了解一下:我知道 nextjs 可以做ssr,这个适合前端,但后台用 nextjs 做适合么?如果不合适 ,推荐用哪个框架来做?(跟nextjs 风格接近的)
    Gaomingzzz
    @Gaomingzzz
    引入的组件 页面是渲染了 但是preview没有怎么回事
    Hrishikesh Bawane
    @hrishibawane
    Hey guys, I am eager to get started with open source contributions on git but as many beginners I am confused about where to start! Any help would be appreciated. This is my github link if you want to check out: https://github.com/hrishibawane
    Michael Kantor
    @mikenolimits
    Hello, is a chat for nextjs?
    dfyang813
    @dfyang813
    我想在next.js里面使用sessionStorge应该怎么操作,直接使用报not defined错误
    CnLq
    @CnLq
    当我使用dynamic来引用组件的时候,在IE11上这个组件加载不出来,是next这个机制在IE不支持吗
    Kamil
    @kamilnosek
    Hello, I've got a question regarding building applications. I'm using simple VPS with node.js support. Now I do not know how to build my next.js application to production.
    I thought that I should use next build && next export then copy out dir to the server but during this process, I faced some issues - when I change route - everything is okay, but if I refresh the page - the page is not found because the server is looking for this file in directories. So how can I deploy my nextjs application in production mode with VPS server with nodejs to do that properly?
    I tried one thing which is not working fine probably or I did something wrong.
    I added nodejs express server with app.prepare().then(() => // code there) and start server with forever library NODE_ENV=production node server.js and it's working fine, but seems this is working in a wrong way - seems it's normal server like in dev mode - so it shouldn't be like that. (I see thunder icon on the right-bottom corner and I see all files which are same as in dev mode) Thank you for your help!
    Bruce Sun
    @athrunsun
    大家好,https://github.com/vercel/next-plugins/tree/master/packages/next-less 中的安装步骤,是将 @zeit/next-less 和 less 保存为dependency而非devDependency,这个是什么原因呢?
    Miche
    @Cospoi
    如何使用sass的同时引入其他的css库 比如font awesome? 我尝试按照font awesome文档和stackoverflow给出的解决方案,font awesome使用正常了,但是我引入的scss不生效了
    sushmeet sunger
    @Sushmeet
    Hi everyone. Is this a chat for nextjs. If so I was looking for some guidelines on how to migrate apps. I see the Hulu case study on. Next but was wondering if there was a more detailed example.
    Devlin Duldulao
    @webmasterdevlin
    Hi. What kind of problem can we encounter if we use Nextjs and ASPNET Core? Nextjs needs a Nodejs server, right? How will they work together in terms of authentication and authorization?
    maxingcong
    @maxingcong
    image.png
    文件进行了压缩 ,为什么还这么大,需要怎么解决,
    zhangsixue-1992
    @zhangsixue-1992
    如何使用loacalstoarge