Skip to content

Commit

Permalink
fix sitemap (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
angusgoody authored Dec 24, 2023
1 parent 5de7f5b commit 920f034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/api/__sitemap__/project-urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { asSitemapUrl, defineSitemapEventHandler } from '#imports'
const runtimeConfig = useRuntimeConfig()

type ApiResult = {
docs: {
Expand All @@ -9,7 +10,8 @@ type ApiResult = {

export default defineSitemapEventHandler(async () => {

const apiBaseUrl = process.env.API_BASE_URL
const apiBaseUrl = runtimeConfig.public.apiBaseUrl


const projects = await $fetch<ApiResult>(`${apiBaseUrl}/api/projects`).catch(
() => null
Expand Down

0 comments on commit 920f034

Please sign in to comment.