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.

"nuxi build" on github action lost public's files

See original GitHub issue

Environment

  • Operating System: Linux
  • Node Version: v14.18.1
  • Nuxt Version: 3.0.0-27304790.cad09fe
  • Package Manager: yarn@1.22.17
  • Bundler: Vite
  • User Config: alias, meta, css, vite, publicRuntimeConfig, buildModules
  • Runtime Modules: -
  • Build Modules: @vueuse/core/nuxt@7.1.2

Reproduction

None

Describe the bug

  - name: ls web
  run: |
    cd packages/web
    yarn --immutable
    yarn build
    ls -l .output/public/_nuxt

Public folder

image

Github Action

image

Windows

image

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Jos-de-Bosscommented, Dec 6, 2021

Hey liuqian. Ever since #2135 public files aren’t copied to .output/public/_nuxt anymore. They are only located in .output/public now if you’re looking for the files.

As a result example.com/_nuxt/myfile.json will no longer work and you’ll need to use example.com/myfile.json. As described in #2261 images are still incorrectly prefixed with /_nuxt on build. (Not sure if that’s the bug you’re describing)

Hope this helps.

0reactions
danielroecommented, Apr 11, 2022

Would you create a new issue with a reproduction? Your issue doesn’t sound related to this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generated image urls for files in the public directory result in ...
When building the server all images urls that reference a file in the public ... "nuxi build" on github action lost public's files...
Read more >
tj-actions/changed-files - GitHub
octocat: Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Read more >
Changed Files · Actions · GitHub Marketplace
Get all Added, Copied, Modified, Deleted, Renamed, Type changed, Unmerged, Unknown files.
Read more >
Features • GitHub Actions
Built in secret store. Automate your software development practices with workflow files embracing the Git flow by codifying it in your repository.
Read more >
Monitoring and troubleshooting self-hosted runners
For guidance on how to install the GitHub certificate, check with your operating system vendor. Reviewing the self-hosted runner application log files. You...
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