question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rc.11 Static Site Generation

See original GitHub issue

When you hit generate command then it shows below message You can now deploy .output/public to any static hosting!

I have deployed that code on server but it is not working because of 404 error messages in console. I have checked index.html file and observed nuxt folder path is not correct.

Generated path for js file /_nuxt/web.8527e9a2.js

It should be ./_nuxt/web.8527e9a2.js or _nuxt/web.8527e9a2.js

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
sevillaarvincommented, Sep 22, 2022

Can you share some help what needs to be add in baseUrl for above case?

and how will be pages directory structure?

I made a pull request in your repository. I added some explanation as well

https://github.com/swapnilnandgave/nuxt3app/pull/1

1reaction
sevillaarvincommented, Sep 22, 2022

I am unable to reproduce the issue.

What’s the output of the terminal after you execute npx nuxi generate? Are there any errors?

If you remove the app.baseURL and run the command again is the index.html generated again? And if you add back is it gone again?

Try to cleanup local caches with npx nuxi@latest cleanup and execute the generate command again.

It would be best if you could provide a repository so that we can reproduce the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Static Site Generation with 11ty - Raymond Camden - YouTube
... Learn how to get started with Eleventy ( 11ty ), an increasingly popular static site generator that leverages JavaScript with Raymond.
Read more >
Eleventy Guide: A Framework-Agnostic Static Site Generator
Craig Buckler introduces Eleventy (11ty), a Node.js static site generator, showing how to build a simple site with pages and blog/article ...
Read more >
7 Top React Static Site Generators in 2020 - Bits and Pieces
A static site generator takes the source files and generates an entire website — or a static site that is sourced from purely...
Read more >
Eleventy, a simpler static site generator
Eleventy, a simpler static site generator. ... Run npx @11ty/eleventy --serve to start up a web server. Then open http://localhost:8080/README/ in your web ......
Read more >
Static Site Generation #515 - nuxt/framework - GitHub
Hi @Akryum. We support Nuxt 2 style (full)static generation up to bridge also with nitro. For Nuxt 3, while it is not implemented...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found