Dynamic build and deployment on Vercel (#21)

* Make deployment doable on EUS and Vercel servers

* Revert to adapter-auto for now

* Remove `r/` layout file

* Fixing deployment configuration and landing page for redirects

* Clean up PR
This commit is contained in:
2025-06-18 22:09:00 -04:00
committed by GitHub
parent 60c63e3859
commit 4f982e7ce3
9 changed files with 68 additions and 60 deletions

View File

@@ -18,5 +18,6 @@ export const load = async ({ params }) => {
return {
shortname: shortname,
availableShortnames: CMSresponse,
}
};

View File

@@ -4,9 +4,18 @@
</script>
<Section>
<p class="page-title">Where am I?</p>
<p>
Oops! We don't have a page for <code>"r/{data.shortname}"</code>.
</p>
<p>Please try again!</p>
<p class="page-title">Can't redirect you to <code>"r/{data.shortname}"</code>!</p>
<hr class="border-2 w-1/2">
<div>
Maybe you were trying to get to:
<ul>
{#each data.availableShortnames as s}
<li class="list-disc list-inside">
<a href={s.url}>
/r/{s.shortname}
</a>
</li>
{/each}
</ul>
</div>
</Section>