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.

when use nirto in dev mode, static dir changed

See original GitHub issue

@baixiaoyu2997 would you explain what you mean in a new issue on https://github.com/nuxt/bridge?

_Originally posted by @danielroe in https://github.com/nuxt/framework/discussions/2883#discussioncomment-2565556_

repo:https://codesandbox.io/s/2tujs5

page view: https://2tujs5.sse.codesandbox.io/

u can see in dev mode, the favicon.ico is 404

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
baixiaoyu2997commented, Apr 18, 2022

set dir is for this case

 bridge: {
      nitro: process.env.NODE_ENV !== 'production',
    },

when nitro is true or false,it use different dir ,so it’s just for me, if u don’t need, just change name is fine

1reaction
baixiaoyu2997commented, Apr 16, 2022

you’re welcome, you should keep following this issue ,because it is possible modify back to static

this is why i creat this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - ️ Nitro - UnJS
Regular handlers refer to the path of handlers to be imported and transformed by rollup. There are situations in that we directly want...
Read more >
Why clear pub/static/frontend after css changes in dev mode?
I am working in the development mode. But when I do some CSS changes in my theme, why I have to manually clear...
Read more >
support injecting single static files into nitro public folder #2453
By default, we could add favicon.ico (1x1 transparent gif) and empty robots.txt if there's no explicit public/ folder.
Read more >
Rendering Modes in Nuxt 3 - This Dot Labs
Each of this rendering modes have their use cases and benefits. In this article, we will take a look at their pros, and...
Read more >
Using the Static Folder - Gatsby
In general, every website needs assets: images, stylesheets, scripts, etc. When using Gatsby, we recommend Importing Assets Directly in…
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