Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Issues when trying to access Runtime Config using DynamicRoutes #23

Open
enrico-bagattin opened this issue Jan 4, 2023 · 0 comments
Open

Comments

@enrico-bagattin
Copy link

Hello, thank you for this great package!
I have followed the guide for dynamic routes, but when I am trying to access to the runtime config in sitemap_routes.ts I got this error:

ℹ Generating sitemaps

 ERROR  nuxt instance unavailable

  at useNuxtApp (node_modules/nuxt/dist/app/nuxt.mjs:130:13)
  at useRuntimeConfig (node_modules/nuxt/dist/app/nuxt.mjs:137:10)

If I place the API Key directly in the code it works well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant