WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit fa9657d

Browse files
committed
remove unused directive
1 parent 8299f73 commit fa9657d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

demos/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ export default defineConfig({
317317
return () => {
318318
viteDevServer.middlewares.use(async (req, res, next) => {
319319
if (req?.originalUrl?.startsWith('/preview')) {
320-
// @ts-expect-error - req.url is not typed but exists at runtime in Vite middleware
321320
req.url = '/preview/index.html'
322321
}
323322

0 commit comments

Comments
 (0)