Comment

Comment by garrison

I tried deploying a static site. DO App Platform makes the file page1/index.html available both at /page1 and at /page1/. If the page contains any relative links or images, it is impossible for both URLs to reference these links correctly. Most web servers handle this by redirecting /page1 to /page1/ before serving it. Netlify does this as well. Vercel works the same as DO in its default mode, but it allows the user to configure the trailing slash behavior to get the redirect. Hugo, for one, assumes all files are served with a trailing slash.
parent garrison 6 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton