打包后为何vite代理未生效,但在dev环境下生效 #582
Unanswered
sxgan-code
asked this question in
Q&A
Replies: 2 comments
-
vite的开发server,只为开发服务,无论是electron开发还是普通web开发,都不会作用生产,vite本质是构建工具。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我是后端开发,对前端还不太了解,感谢解答,我去码代码了
…________________________________
发件人: ***@***.*** ***@***.***> 代表 alex.wei ***@***.***>
发送时间: 2024年8月6日 07:00
收件人: alex8088/electron-vite ***@***.***>
抄送: Zoey ***@***.***>; Author ***@***.***>
主题: Re: [alex8088/electron-vite] 打包后为何vite代理未生效,但在dev环境下生效 (Discussion #582)
vite的开发server,只为开发服务,无论是electron开发还是普通web开发,都不会作用生产,vite本质是构建工具。
―
Reply to this email directly, view it on GitHub<#582 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APD7VXQ7E453TNEZRVXPJ2TZQDJH3AVCNFSM6AAAAABMCILTQ6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRVGQZDQMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
按照vite的官网进行了代理配置,开发环境一切正常,但是最近开发完成后进行打包,所有接口都无法被代理了
Beta Was this translation helpful? Give feedback.
All reactions