svelte5-static-site-generator-issue Svelte Themes

Svelte5 Static Site Generator Issue

svelte5-static-site-generator-issue

Start

After npm install, run the development server:

npm run dev

This all works as expected.

Building

Run the build

npm run build

You can preview the production build with npm run preview.

The Issue

When running the build directory from any non-vite host, navigate to http://localhost:4173/user/Bobby directly in the browser, it will 404

Note: If you navigate to the root page first, then click the link to /user/Bobby, it works fine. The issue is only when directly linking to that page.

Top categories

Loading Svelte Themes