Coder Social home page Coder Social logo

Comments (5)

Durgaprasad-Budhwani avatar Durgaprasad-Budhwani commented on May 23, 2024 2

I'm 100% human. Last moment they made some fixes related to base path and redirect and it has been fixed for action but it seems the issue is not fully fixed on components level.

from next.js.

Durgaprasad-Budhwani avatar Durgaprasad-Budhwani commented on May 23, 2024 1

Hey there! Ran into a bit of a snag with the redirect("/login") in your page component, huh? Especially when you're playing around with basePath in next.config.js, things can get a little tricky. I totally get the frustration when stuff just doesn't work as expected. But hey, you found a workaround by setting up a server action—that's awesome! It's all about those creative solutions.

If you're up for it, there's a video that might shed some light on the issue. Give it a watch right here: Loom Video. Sometimes, seeing it in action makes all the difference.

And if you're in the mood to dive deeper or tweak some more code, the entire codebase is waiting for you over at CodeSandbox. Who knows? You might just stumble upon something that clicks.


"Let's make the digital world smaller! Connect with me across the web on these social platforms and let's create, share, and inspire together." ✨🌐 #StayConnected

LinkedIn Twitter

Solved 04

from next.js.

aryobenholzner avatar aryobenholzner commented on May 23, 2024 1

possibly related #59800

from next.js.

SpasiboKojima avatar SpasiboKojima commented on May 23, 2024

Hey there! Ran into a bit of a snag with the redirect("/login") in your page component, huh? Especially when you're playing around with basePath in next.config.js, things can get a little tricky. I totally get the frustration when stuff just doesn't work as expected. But hey, you found a workaround by setting up a server action—that's awesome! It's all about those creative solutions.

What are you talking about? You found a workaround, if you are not a bot, then sorry, this doesn't work for me, my workaround is to sacrifice the loading.tsx component.

from next.js.

SpasiboKojima avatar SpasiboKojima commented on May 23, 2024

I'm 100% human. Last moment they made some fixes related to base path and redirect and it has been fixed for action but it seems the issue is not fully fixed on components level.

Thank you for your input then, that's a valid workaround come to think of it, still hope it can be fixed on component level since it was very frustrating finding it.

from next.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.