We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3ec39 commit 3f3065bCopy full SHA for 3f3065b
packages/core/src/vite-rpc/assets.ts
@@ -83,6 +83,8 @@ export function setupAssetsRPC(config: SetupAssetsOptions) {
83
cache = await Promise.all(files.map(async (path) => {
84
const filePath = resolve(dir, path)
85
const stat = await fsp.lstat(filePath)
86
+ // remove public prefix to resolve vite assets warning
87
+ path = path.startsWith('public/') ? path.slice(7) : path
88
return {
89
path,
90
publicPath: join(baseURL, path),
0 commit comments