How do I serve a Vite app? #3707
Answered
by
Android789515
Android789515
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
Android789515
Aug 1, 2025
Replies: 1 comment
-
I figured out a problem. I assumed I needed to cd from main.rs but it's actually from the src folder for the server. This: actix_files::Files::new("/", "../../dist") needs to be this: actix_files::Files::new("/", "../dist") I'm viewing my site now. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Android789515
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured out a problem. I assumed I needed to cd from main.rs but it's actually from the src folder for the server.
This:
needs to be this:
I'm viewing my site now.