Skip to content

Commit

Permalink
Update openapi.ts
Browse files Browse the repository at this point in the history
handle NEXT_PUBLIC_BASE_PATH !== ""
  • Loading branch information
otobot1 committed Mar 11, 2024
1 parent 463d4e2 commit 5610858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export const openApiDocument = generateOpenApiDocument(
{
title: 'Celeste Mods List API',
version: '1.0.0',
baseUrl: '/api',
baseUrl: `${process.env.NEXT_PUBLIC_BASE_PATH ? process.env.NEXT_PUBLIC_BASE_PATH : ""}/api`,
},
);

0 comments on commit 5610858

Please sign in to comment.