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

Empty preview on Studio while using i18n #3034

Open
mateusznarowski opened this issue Jan 24, 2025 · 1 comment
Open

Empty preview on Studio while using i18n #3034

mateusznarowski opened this issue Jan 24, 2025 · 1 comment

Comments

@mateusznarowski
Copy link

Environment

  • Operating System: Darwin
  • Node Version: v20.18.1
  • Nuxt Version: 3.15.2
  • CLI Version: 3.20.0
  • Nitro Version: 2.10.4
  • Package Manager: pnpm@9.15.0
  • Builder: -
  • User Config: modules, components, imports, devtools, content, future, compatibilityDate, hub, eslint, i18n
  • Runtime Modules: @nuxt/eslint@0.7.5, @nuxtjs/i18n@9.1.3, @nuxt/content@3.0.0, @nuxthub/core@0.8.14
  • Build Modules: -

Version

v3

Reproduction

https://github.com/mateusznarowski/multilanguage

nuxtcontent.mov

Description

I need to create an application that supports multiple languages, so I decided to use @nuxt/content (mainly because of Studio) with @nuxtjs/i18n, but when preview is enabled, the content disappears and only the layout elements remain, the page is currently deployed via nuxthub (so cloudflare-pages preset) https://multilanguage.nuxt.dev

Additional context

No response

Logs

@mateusznarowski
Copy link
Author

Found the location of error, error occurs in content.config.ts, when the prefix has '' then when the preview is launched the content disappears, I changed in one place and another from '' to '/' and now it works correctly. The question is whether this is what the value should be for prefix, or some other value?

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

No branches or pull requests

1 participant