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 .
Deno AI Helper46d 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.
𝕒𝕣𝕤𝕙45d 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
NDH45d ago
Been studying Solid and Astro. Can't wait to try an Astro project.
I'm making progress learning Node -- but still pretty green!
𝕒𝕣𝕤𝕙45d ago
that's awesome! feel free to share if something doesn't work or feel right
More Posts
Importing internal modulesI would like to use in my code,Strange error after lint in github actionsfor a some reason after: ```yml - name: Run linter run: deno lint ``` I get error that saysHow to encrypt and decrypt files from S3 without loading the hole content into memory?How to encrypt and decrypt files from S3 without loading the hole content into memory? I have this Worksapces / Monorepo supportDeno does not currently have the capability to resolve `workspace:^` references and this breaks any Deno Oak : Can't connect to SSE with Deno DeployHello, I'm trying to deploy an app who use Server Sent Events. The goal is to keep in memory differeError connecting to mongoose when using deno cli**deno-x86_64-pc-windows-msvc v1.41.1** Testing the following code using `nodejs` and on `deno deplHow to debug deno on Visual Studio? (Not VSCode)Is it possible to debug deno on Visual Studio? (not vscode) I only know how to debug it using windoHow to polyfill node imports when bundling with the deno version of esbuild?Hello, I am trying to run esbuild using to bundle a Deno project into aforward stream response from openapi to frontendforward stream openapi by using deno backend as a middleware, how to receive and send stream to fronShould deno install work with jsr?What am I doing wrong? When I try to install a CLI from and then use it, I get an error messaImport-IntelliSense with Fresh and VSCode doesn't work as expectedHey. I'm fairly new to Deno and Fresh so I assume I'm simply missing something. I've created a FreshHow to rewrite this code so I don't have to force deno to stop linting?```ts import { parse } from ""; import { match } from "npm:Deno compile optimizationHi Everyone, I'm building a CLI tool with Deno and I was wondering - if there are any optimizationIs there a way to select Partial Mode on button?I researched and I do not think it is possible, but it would be nice to do something like: ```<a f-pHow to Restart Server ManuallyI run Hono framework with Deno. I run the server using task script `deno run -A --watch ./server/maiIs there any reference manual for how doc comments are rendered on JSR or guessed it's just TSDoc, but it turns out that it's not exactly TSDoc (e.g., `@link` to an instancHow to start using data validation in kv?Hey fellows! I want to dive into data validation. Any experience or suggestions? Feel free to postdeno cache isn't working from vscodeWhen initializing a new fresh project from the cli script `deno run -A -r` an