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

Full-static generated site attempt to fetch payloads for non-generated page #7559

Closed
FreekVR opened this issue Jun 19, 2020 · 6 comments
Closed

Comments

@FreekVR
Copy link

FreekVR commented Jun 19, 2020

Version

v2.13.0

Reproduction link

https://codesandbox.io/s/silly-tesla-blj2f?file=/pages/_slug.vue

Steps to reproduce

  • Create a dynamic route eg. pages/_slug.vue
  • Make sure this page is not generated and /or crawlable
  • Navigate to the page: https://blj2f.sse.codesandbox.io/foo
  • A 404 console error is logged

What is expected ?

Nuxt doesn't attempt to fetch payloads that don't exist

What is actually happening?

404 errors are logged to the browser console

This bug report is available on Nuxt community (#c10802)
@ghost ghost added the cmty:bug-report label Jun 19, 2020
@ziosa
Copy link

ziosa commented Jun 23, 2020

Hello @FreekVR ,

Are you sure that there is a bug?
For me seems to work properly:

image

@FreekVR
Copy link
Author

FreekVR commented Jun 23, 2020

@ziosa it doesn't show up in the console / terminal on codesandbox itself, but if you click the little button on the top-right to open it in a dedicated window, you should see a 404 for payload.js in your devtools / browser console.

@pi0
Copy link
Member

pi0 commented Jul 10, 2020

Hi @FreekVR This issue is fixed with v2.13.3 (#7657) (related issue: #7648)

Forked sandbox:

@pi0 pi0 closed this as completed Jul 10, 2020
@divine
Copy link
Contributor

divine commented Jul 12, 2020

Hi @pi0, it's not fixed, you can see 404 payload error when used with nuxt-i18n.

See this sandbox:

Thanks!

@divine
Copy link
Contributor

divine commented Jul 13, 2020

@pi0 @Atinux could you please reopen this issue or should I create a new issue? It's not fixed completely.

Thanks!

@Atinux
Copy link
Member

Atinux commented Jul 14, 2020

@divine indeed please create a reproduction, with a GitHub repo since it's hard to actually debug full static on CodeSandbox since it's dev mode only.

You can also use https://surge.sh to easily deploy once statically generated (it's free).

PS: please mention me when creating the issue

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

No branches or pull requests

6 participants