feat: setup project for docker deploy

This commit is contained in:
2025-07-23 22:00:35 +00:00
parent a2a21acbb3
commit 3eb1522525
12 changed files with 139 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ const baseUrl = process.env.REACT_APP_API_BASE_URL
export async function shortenUrlApi(
payload: ShortenUrlRequest
): Promise<ShortenUrlResponse> {
const response = await fetch(`${baseUrl}/`, {
const response = await fetch(`${baseUrl}/api/shorten`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload),