You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should show a 404 error page. In addition, my data has some 302 redirects set up, but those aren't working either. Probably related to the same problem. The error pages do show up with npm run preview though (and the redirects work also).
On a completely static site (for example, just a flat list of files on B2), there's no way to specify a server response for error pages. Svelte must be relying on JavaScript to get the right behaviors, so I probably need to stop disabling hydration on all of the pages. I'm not entirely sure this is the root of the issue though.
Having arbitrary URLs just point to the main index with no redirect will probably be terrible for SEO.
The text was updated successfully, but these errors were encountered:
This StackOverflow answer suggests that we should be able to implement redirects with JavaScript even if that's not the "correct" way to handle this situation.
The site is currently hosted on Cloudflare Sites, which seems to be a 'turn-key' solution to creating a site with Workers and some backend storage. It's likely that I'll have to 'eject' the site from Sites and use Workers directly in order to address these redirection issues. Here's a tutorial on serving a static site form BackBlaze B2 with a Cloudflare Workers server to handle redirection and errors: https://roote.ca/about/tutorials/static-site/
It should show a 404 error page. In addition, my data has some 302 redirects set up, but those aren't working either. Probably related to the same problem. The error pages do show up with
npm run preview
though (and the redirects work also).On a completely static site (for example, just a flat list of files on B2), there's no way to specify a server response for error pages. Svelte must be relying on JavaScript to get the right behaviors, so I probably need to stop disabling hydration on all of the pages. I'm not entirely sure this is the root of the issue though.
Having arbitrary URLs just point to the main index with no redirect will probably be terrible for SEO.
The text was updated successfully, but these errors were encountered: