Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 61327cb

Browse files
committed
Fix: Update API base URL to use the correct subdomain for requests
1 parent 343a7a5 commit 61327cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/api/[...slug].ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
7777
if (host.includes('croissant-api.fr')) {
7878
apiBaseUrl = 'http://localhost:3456';
7979
} else {
80-
apiBaseUrl = 'https://croissant-api.fr/api';
80+
apiBaseUrl = 'https://api.croissant-api.fr/';
8181
}
8282

8383
let url = `${apiBaseUrl}/${Array.isArray(slug) ? slug.join('/') : slug}`;

0 commit comments

Comments
 (0)