Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better way to add 404 page #411

Open
3 tasks done
sevenc-nanashi opened this issue Jul 27, 2024 · 0 comments
Open
3 tasks done

Better way to add 404 page #411

sevenc-nanashi opened this issue Jul 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sevenc-nanashi
Copy link

sevenc-nanashi commented Jul 27, 2024

Clear and concise description of the problem

(First of all, thank you for awesome library!)

I use vite-ssg to generate pages for GitHub actions.
But vite-ssg doesn't recognize [...path].vue, nor 404.html.
There is a workaround, but it looks ugly:

    routes: [
      ...routes,
      // [...path] を404として認識させるハック
      {
        ...routes.find((route) => route.name === "/[...path]")!,
        path: "/404",
        name: "/404",
      },
    ],

Suggested solution

Support [...notFound].vue as 404 page.

Alternative

N/A?

Additional context

No response

Validations

@sevenc-nanashi sevenc-nanashi added the enhancement New feature or request label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant