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

Setting a baseURL causes Nuxi Generate to not generate html files in ./output/public #15123

Closed
Redemption198 opened this issue Oct 10, 2022 · 2 comments · Fixed by nuxt/framework#8079

Comments

@Redemption198
Copy link

Redemption198 commented Oct 10, 2022

Environment

  • Operating System: Linux
  • Node Version: v16.15.0
  • Nuxt Version: 3.0.0-rc.12-27755545.c905a23
  • Nitro Version: 0.5.4-27726613.640c2b7
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: modules, components, pwa
  • Runtime Modules: @nuxtjs/tailwindcss@5.3.5, @vueuse/nuxt@9.3.0, @kevinmarrec/nuxt-pwa@0.6.1, @vueuse/motion/nuxt@2.0.0-beta.23
  • Build Modules: -

Reproduction

  1. Create a .env and set NUXT_APP_BASE_URL to a custom base url.
  2. Run npx nuxi generate (It will say that the crawler is prerendering the routes, but no file tree is shown as usual).
  3. Open ./output/public and no html file can be found.

A reproduction on StackBlitz is available here.

Describe the bug

Setting a baseURL causes npx nuxi generate to not generate html files in ./output/public

Additional context

No response

Logs

No response

Copy link
Member

For now you can work around by specifying it manually, e.g. NUXT_APP_BASE_URL=/foo/ nuxt generate.

@Redemption198
Copy link
Author

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants