To avoide tariling slash in URL on deno deploy

We have used deno deploy to build website done using Astro frame work (Astrowind Theme)in production environment, It's observed a trailing slashed at the end of each URL when click on the menu but its found displayed correctly when hover the mouse on each menu . It works as expected without the trailing slash in my local environment. We have made all the changes in config files as per Astro documentation. could you please let us know if this happens during the deno deploy process .
4 Replies
Deno AI Helper
Deno AI Helper10mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it seems like the issue might be related to the way URLs are being handled either by the Astro framework or by Deno Deploy. One thing to check is whether there are any configurations within Astro that control URL formatting, especially when building for production. Since you mentioned that it works as expected in your local environment, it's possible that there might be environment-specific settings that are affecting the URLs on Deno Deploy. Also, ensure that any link generation within your application is consistent and does not inadvertently add a trailing slash. This is not based on the Deno documentation, so please double-check the accuracy of this advice and consider looking into the Astro framework's documentation or community for more specific guidance on URL handling. If the issue persists, you might want to reach out to the Astro community or check the Astro framework's issue tracker to see if this is a known issue or if there are any recommended solutions.
𝕒𝕣𝕤𝕙
𝕒𝕣𝕤𝕙10mo ago
astro is not supported for deno, you might want to try another platform if you're self hosting, you'd want the node adapter astro-sst allows you to deploy to aws lambda and s3 if you want to use a serverless platform, the cloudflare, netlify, and vercel adapters are the officially maintained ones
Fifth-Normal-Form
Been studying Solid and Astro. Can't wait to try an Astro project.
I'm making progress learning Node -- but still pretty green!
𝕒𝕣𝕤𝕙
𝕒𝕣𝕤𝕙10mo ago
that's awesome! feel free to share if something doesn't work or feel right

Did you find this page helpful?