Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3] Ability to specify api.baseUrl #3091

Open
keztheslayer opened this issue Feb 5, 2025 · 0 comments
Open

[V3] Ability to specify api.baseUrl #3091

keztheslayer opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@keztheslayer
Copy link

keztheslayer commented Feb 5, 2025

Is your feature request related to a problem? Please describe

In the previous major version (nuxt-content@2), I was able to specify api.baseUrl in nuxt.config.ts. This option was essential for me because my Nuxt application is served from a non-root directory. I had api.baseUrl = '_nuxt/content' configured in my nuxt.config.ts.

After migrating to nuxt-content@3, I encountered an issue where requests to /api/content return a 404 error. This happens because building the app creates an api/content directory in .output, which is located next to my _nuxt directory. Unfortunately, I cannot change the non-standard path for my application.

Describe the solution you'd like

Adding the ability to specify baseUrl for api.

Describe alternatives you've considered

Sorry, didn't find any solutions

Additional context

A screenshot is probably not necessary for this feature request.

@keztheslayer keztheslayer added the enhancement New feature or request label Feb 5, 2025
@keztheslayer keztheslayer changed the title Ability to specify api.baseUrl [V3] Ability to specify api.baseUrl Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant