Giter Site home page Giter Site logo

Comments (19)

manniL avatar manniL commented on May 12, 2024 1

Please try the above mentioned fix :)
If it doesn't work, provide a minimal reproduction ☺️

from nuxt.js.

danielroe avatar danielroe commented on May 12, 2024

Would you provide a reproduction? πŸ™

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

Check here

When I use nuxt generate /test/ goes to /test however in dev no changes /test/ to /test/

Due to some issue can't prerender in nuxt to test. You need to test locally

from nuxt.js.

danielroe avatar danielroe commented on May 12, 2024

I can't reproduce this locally.

CleanShot 2023-07-24 at 15 21 55

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

Let me check

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

I have a new small project the same issue occurred, but I would like to provide private repository access.

@danielroe Which user should I give private repo access to?

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

/font-keren/ redirects to /font-keren

I tried creating middleware to fix this, but it goes into an infinite loop of redirecting

Command - npm run generate

Deployed on cloudflare pages

from nuxt.js.

manniL avatar manniL commented on May 12, 2024

Provide a minimal reproduction please. Otherwise it will be difficult to help.
Also be aware that some platforms, e.g. Netlify, have their own trailing slash rules that they apply!

So does Cloudflare pages apparently, see https://developers.cloudflare.com/pages/platform/serving-pages/#route-matching

You can maybe work around by using the nitro option below (available since Nitro v2.6.3):

defineNuxtConfig({
  nitro: {
    prerender: {
      autoSubfolderIndex: false
    }
})

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

I am using Cloudflare pages. Can I provide you private repository access?

from nuxt.js.

manniL avatar manniL commented on May 12, 2024

@rahulkumarsingh73690 See my updated answer.
Also, a whole project is no minimal reproduction.

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

Very small project just started

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

Tested locally the same issue in localhost. So I don't think due to hosting provider.

some pages works and mostly not

npm run generate

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

https://github.com/rahulkumarsingh73690/cuping-font/

from nuxt.js.

github-actions avatar github-actions commented on May 12, 2024

Would you be able to provide a reproduction? πŸ™

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a couple of templates for starting with a minimal reproduction:

πŸ‘‰ https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
πŸ‘‰ https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox

A public GitHub repository is also perfect. πŸ‘Œ

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

from nuxt.js.

manniL avatar manniL commented on May 12, 2024

rahulkumarsingh73690/cuping-font

This is not a minimal reproduction. Please check the text above and provide one with as little business logic, additional files etc. as possible. ☺️

I'm afraid that it is not feasible going through a project file that contains more than just how to reproduce the issue.

Also, please add instructions how to reproduce the problem.

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

I didn't understand what makes this issue happen, I created new project everything works fine that's why I shared repo it contains only few pages

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

/disclaimer/ goes to /disclaimer/
/font-keren/ redirects to /font-keren (why?)

from nuxt.js.

ennioVisco avatar ennioVisco commented on May 12, 2024

@rahulkumarsingh73690 how did you solve it?

from nuxt.js.

rahulkumarsingh73690 avatar rahulkumarsingh73690 commented on May 12, 2024

@ennioVisco use server side rendering that's it

from nuxt.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.