feat: add next.config rewrites for shortlink routing and show domain in UI

This commit is contained in:
Mohan Ki
2026-07-27 15:57:40 +05:30
parent c6a0a13616
commit 01c74fb29d
4 changed files with 17 additions and 4 deletions
+3 -3
View File
@@ -123,9 +123,9 @@ export default function CreateQRPage() {
<div>
<label className="block text-sm font-medium text-gray-700 mb-1">Custom Short Link (Optional)</label>
<div className="flex shadow-sm rounded-lg overflow-hidden border border-gray-300 focus-within:ring-2 focus-within:ring-indigo-500">
<span className="inline-flex items-center px-4 bg-gray-50 text-gray-500 border-r border-gray-300 text-sm">
/l/
<div className="flex flex-col sm:flex-row shadow-sm rounded-lg overflow-hidden border border-gray-300 focus-within:ring-2 focus-within:ring-indigo-500">
<span className="inline-flex items-center px-4 bg-gray-50 text-gray-500 border-r border-gray-300 text-sm whitespace-nowrap">
{(process.env.NEXT_PUBLIC_APP_URL || 'https://qr.houseofwebsites.ai').replace(/^https?:\/\//, '')}/l/
</span>
<input
type="text"