Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    子慕大诗人
    @zimv
    @marin6699 getInitialProps({ req }){req.headers.cookie}
    GeekThuG
    @GeekThuG
    Hey people i have problem to import css file in nextjs 8
    i use the component react-phone-input-2
    but when i add import 'react-phone-input-2/lib/style.css'
    he add in shunk but not display in application
    子慕大诗人
    @zimv
    image.png
    chendishen
    @chendishen
    之前版本的NEXTjs是怎么引入图片的,我忽然间发现已经改版了,现在是static静态文件目录,以前是public可是怎么引用图片来着
    chendishen
    @chendishen
    ok了,找到另一份文档了
    Elias Chaaya
    @chaaya

    Anyone with experience with next-auth?

    Got a problem with configuring the signIn callback. I need to check if the user has the role Admin before letting them access my application, if they are just a regular user I want to redirect them to the an error page.

    It works fine with redirecting them when user lacks the role admin, but when I as the documentation says return a Promise with true when the user is a admin, nextjs just keeps redirecting to my oauth2 server for login agin. Any suggestions?

        callbacks: {
          signIn: async (_user, _account, profile: IWorklyProfile) => {
            const isSomeKindOfAdmin =
              profile[ROLE_PATH].includes(Role.PartnerAdmin) ||
              profile[ROLE_PATH].includes(Role.CustomerAdmin);
            if (!isSomeKindOfAdmin) {
              return Promise.reject(new Error('Invalid access'));
            }
    
            return Promise.resolve(true);
          }
        }
    This message was deleted
    wonderl17
    @wonderl17
    @zimv 大佬再发一下群二维码吧
    Mohsen
    @mossen
    Hi guys, anyone can help me and give me a direction to implement CSRF token in Nextjs?
    笔记
    @kabimew
    问下大佬们,nextjs 命令行屏幕上如何支持实时显示eslint和typescript错误?
    YuHao Guan
    @Guanyuhao
    nextJS next/head自定义每个页面的头 路由切换样式会飞
    我也有遇到类似的问题 是因为使用了next/head 在样式飞的页面内
    Limw
    @lmw0221
    如何在nextjs项目中,使用eslint工具?
    子慕大诗人
    @zimv
    @wonderl17
    大家进交流群可以通过这个博客下面的链接,因为我会经常更新这里。这个gitter可能会很少进来https://www.cnblogs.com/1wen/p/10793868.html
    二维码在博客最下方
    agm god
    @aboveground.market_gitlab
    hello there, looking for help with next-js auth, I have configured a custom provider to my separate graphQL authentication endpoint but it doesn't seem to be hitting it
    Gianfabio Pezzolla
    @gianfabiopezzolla
    Hi there, there is a way to pass data between pages with routes, but hide it in url?
    Anoop Gupta
    @anoop-gupt
    Hi all, any pointer for implementing security headers and content security policy directives in next js TIA
    robin
    @RobinYang11
    大佬们 next.js 如果做 请求拦截
    我们都知道koa 有 中间件 ,nextjs 中 怎么拦截 请求
    Cuz
    @mingxin-yang
    有人在nextjs里用过grapesjs吗
    Constantin Angheloiu
    @cmnstmntmn
    hei there
    i'm looking to have a general app provider via MyApp.getInitialProps .. it works but i can't set notFound: true in case no results are found
    Brian Edelman
    @brianedelman
    Why would nextjs be rendering a _data/...json file for every item in a list view? I had statically rendered the page (but not prefetch any data at build time) and as I scroll down the page, each item is fetched as I scroll. I turned off getStaticProps for this page and it's still doing it. Am I missing something here?
    *_next/data
    Brian Edelman
    @brianedelman
    I figured it out. Silly <Link> without prefetch={false} issue
    Constantin Angheloiu
    @cmnstmntmn
    hei
    i'm trying to make nextjs 11 work on aws amplify
    all ok but the image optimization
    the only thing that works is the quality control of the image; nothing more
    martinv678
    @martinv678
    Hey, wondering if anyone here knows as i'm struggling to find the information online
    Does anyone know if context.req is cached somewhere?
    I'm somehow getting cookies that does not exist in the browser
    tang
    @SouthLink
    puppeteer 爬取 next 页面时偶现遇到 nextjs An unexpected error has occurred 有人知道怎么解决吗
    kim
    @slbing
    nuxt can easy build for a spa app, I can't find a way for nextjs build spa as nuxt,who can give my some suggest?
    leo-ersagun
    @leo-ersagun
    Hello everyone, we want to use NextJs to generate purely html pages without any javascript 0 JS file. Those html pages are basically email templates for newsletters, they will be sent by email and it cannot contain Javascript because email clients doesn't support Javascript. Is there an elegant, clean and recommended way to disable all Javascript from NextJs? Thank you for your time to read it and for your help in advance.
    kevin lin
    @devonlin101
    https://nextjs.org/examples you can find any example with nextjs
    Joy Ayitey
    @CharaD7
    Hey guys, I'm Joy from Ghana, happy to be here
    5P4RK3R
    @5P4RK3R
    Hey guys, I'm new to nextjs, i'm getting this issue : TypeError: Cannot read properties of undefined (reading '_context') for a newly created nextjs app on yarn dev. can you help me out?
    俊少
    @yuejunsheng
    d69284368bc6ca17bd7cb3004e60352.jpg
    有问题的可以进群交流学习
    Junior
    @Muhammad-Waleed-Hafeez
    has anyone used Nextjs with asp .net core for web development
    Grizzly-Eric
    @Grizzly-Eric
    hi @yuejunsheng can you please update the QRcode for the wechat group?
    Grizzly-Eric
    @Grizzly-Eric
    Does anyone know how to collect the error log on the Next server?
    askHarshV
    @askHarshV
    Hi