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
router.trailingSlash error with static target #706
Comments
@chazmcgarvey I don't think you can call |
Thank you for the link to that other issue. I learned some things from the discussion and following links there. Still, it seems like it's not quite working like the documentation indicates it should. I believe this code is virtually identical to the example here: https://content.nuxtjs.org/displaying The important thing is But yeah, I could easily be missing something; I only picked up nuxt-content and indeed nuxt a few days ago. I do need a better handle on the Nuxt lifecycle, because it's not clear to me what is supposed to be setting |
@chazmcgarvey From your reproduction steps, I'm curious to know why you don't run |
@sts-ryan-holton I believe Actually only using Source: https://nuxtjs.org/docs/2.x/get-started/commands#target-static |
@chazmcgarvey so are you saying that |
@sts-ryan-holton Somebody more knowledgeable might come along and correct me, but yes I don't think there is anything that As to the performance of your site, the likeliest issue is probably just large build artifacts with unused styles or code. The output of |
There is definitely some weird things going with See #690 it's one of those bugs, it should be handled by nuxt itself.... |
Version
@nuxt/content:1.11.1
nuxt: 2.14.12
Reproduction Link
https://codesandbox.io/s/upbeat-hooks-5n26o
Steps to reproduce
nuxt.config.js
with{ target: 'static', router: { trailingSlash: true }, ... }
.nuxt generate
).dist/
to a real web server (nuxt start
doesn't exhibit the problem).What is Expected?
The content page loads normally.
What is actually happening?
The content page appears in the browser but fails to hydrate. The console has this:
This occurs with a generic page like this:
The text was updated successfully, but these errors were encountered: